00001 #ifndef DATE_INCLUDED
00002 #define DATE_INCLUDED
00003
00004
00005 const double MINUTE = 1.0;
00006 const double HOUR = 60.0 * MINUTE;
00007 const double DAY = 24 * HOUR;
00008 const double WEEK = 5 * DAY;
00009 const double WEEKEND = 2 * DAY;
00010
00011
00012 bool specialYear(int y);
00013 unsigned int year_days(int y);
00014 unsigned int my_month_days(unsigned int m, unsigned int y);
00015 long days(int ys, int ms, int ds, int ye, int me, int de);
00016 double minutes(int Ys, int Ms, int Ds, int hs, int ms,
00017 int Ye, int Me, int De, int he, int me);
00018 bool parseDateString(const char* str, long& year, long& month, long& day);
00019 bool parseDateTimeString(const char* str, long& year, long& month, long& day, long& hour, long& minute);
00020
00021 #endif
00022