home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff276.lzh / DateRequester / MRDates.h < prev    next >
C/C++ Source or Header  |  1989-11-09  |  966b  |  39 lines

  1. /* MRDates.h - Declarations for types and variables used by MRDates. */
  2.  
  3. #ifndef _MRDATES_H
  4. #define _MRDATES_H
  5. typedef struct {
  6.     int    Dyear;        /* year AD (e.g. 1987)    */
  7.     int    Dmonth;        /* month of year (0-11)    */
  8.     int    Dday;        /* day in month (1-31)    */
  9.     int Dhour;        /* 0-23                 */
  10.     int Dminute;    /* 0-59                 */
  11.     int Dsecond;    /* 0-59                 */
  12.     int    Dweekday;    /* day of week (Sun=0)    */
  13. } MRDate;
  14.  
  15. typedef struct {
  16.         char    *Mname;
  17.         int     Mdays;
  18.         } CalEntry;
  19.  
  20. #ifdef MRDATES
  21. CalEntry calendar[12] = {
  22.         { "Jan", 31 },   { "Feb", 28 },  { "Mar", 31 }, { "Apr", 30 },
  23.         { "May", 31 },   { "Jun", 30 },  { "Jul", 31 }, { "Aug", 31 },
  24.         { "Sep", 30 },   { "Oct", 31 },  { "Nov", 30 }, { "Dec", 31 }
  25.     };
  26. #else
  27. extern CalEntry calendar[12];
  28. #endif
  29.  
  30. #ifdef MRDATES
  31. char *dayNames[7] = {
  32.     "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"
  33.     };
  34. #else
  35. extern char *dayNames[7];
  36. #endif
  37.  
  38. #endif
  39.