home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 565a.lha / WorldTime_v1.31 / data.c next >
C/C++ Source or Header  |  1991-11-06  |  1KB  |  45 lines

  1. #include "wtime.h"
  2.  
  3. long _stack=4000;
  4. long _priority=0;
  5. long _BackGroundIO=0;
  6. char *_procname="worldtime";
  7.  
  8. struct TimeZone TimeZones[84];
  9.  
  10. struct IntuitionBase *IntuitionBase;
  11. struct GfxBase *GfxBase;
  12. struct Window *Window;
  13. struct RastPort *rp;
  14. struct IntuiMessage *Msg;
  15. struct timerequest timereq;
  16. struct MsgPort *timerport;
  17.  
  18. struct NewWindow
  19.     win={
  20.         0,0,640,200,-1,-1,CLOSEWINDOW|MOUSEBUTTONS,
  21.         WINDOWCLOSE|WINDOWDEPTH|WINDOWDRAG|RMBTRAP|ACTIVATE,
  22.         NULL,NULL,(STRPTR)"WorldTime v1.31 by Jonathan Potter, 1991",
  23.         NULL,NULL,0,0,0,0,WBENCHSCREEN},
  24.     iconwin={
  25.         100,0,388,0,-1,-1,CLOSEWINDOW|MOUSEBUTTONS,
  26.         WINDOWCLOSE|WINDOWDEPTH|WINDOWDRAG|RMBTRAP,
  27.         NULL,NULL,NULL,NULL,NULL,
  28.         0,0,0,0,WBENCHSCREEN};
  29.  
  30. char yourplace[20],otherplace[20],defotherplace[20];
  31. float yourtime,othertime,defothertime;
  32.  
  33. char
  34.     *months[12]={
  35.         "January","February","March","April","May","June",
  36.         "July","August","September","October","November","December"},
  37.     *days[7]={
  38.         "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"},
  39.     *shortmonths[12]={
  40.         "Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
  41. int wdays[12]={
  42.     31,28,31,30,31,30,31,31,30,31,30,31};
  43. int lastmin,timeoff,lastday;
  44. int todaycol,yesterdaycol,tomorrowcol,clockcol,citycol;
  45.