|
Public Types |
| enum | Weekday {
Sunday = 0,
Monday = 1,
Tuesday = 2,
Wednesday = 3,
Thursday = 4,
Friday = 5,
Saturday = 6
} |
| enum | Month {
January = 1,
February = 2,
March = 3,
April = 4,
May = 5,
June = 6,
July = 7,
August = 8,
September = 9,
October = 10,
November = 11,
December = 12
} |
Public Methods |
| | d_Date (void) |
| | d_Date (long julian_day) |
| | d_Date (unsigned short year, unsigned short month=1, unsigned short day=1) |
| | d_Date (const d_Date &) |
| | d_Date (const d_Timestamp &) |
| d_Date & | operator= (const d_Date &) |
| d_Date & | operator= (const d_Timestamp &) |
| void | setDate (unsigned short year, unsigned short month, unsigned short day) |
| unsigned short | year () const |
| unsigned short | month () const |
| unsigned short | day () const |
| unsigned short | day_of_year () const |
| Weekday | day_of_week () const |
| d_Date & | next (Weekday) |
| d_Date & | previous (Weekday) |
| d_Date & | operator+= (const d_Interval &) |
| d_Date & | operator+= (int ndays) |
| d_Date & | operator++ () |
| d_Date | operator++ (int) |
| d_Date & | operator-= (const d_Interval &) |
| d_Date & | operator-= (int ndays) |
| d_Date & | operator-- () |
| d_Date | operator-- (int) |
| d_Interval | operator- (const d_Date &) |
| int | is_leap_year () const |
| int | is_between (const d_Date &, const d_Date &) const |
| int | days_in_year () const |
| int | days_in_month () const |
Static Public Methods |
| d_Date | current () |
| int | is_leap_year (unsigned short year) |
| int | days_in_year (unsigned short) |
| int | days_in_month (unsigned short, unsigned short) |
| int | is_valid_date (unsigned short, unsigned short, unsigned short) |