|
Public Types |
| enum | weekDay_t {
Saturday = 0,
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Firday
} |
| | Enumeration of weekdays. More...
|
| enum | month_t {
January = 1,
February,
March,
April,
May,
June,
July,
August,
September,
October,
November,
December
} |
| | Enumeration of months. More...
|
Public Member Functions |
| | Date (unsigned short year=1970, unsigned char month=1, unsigned char day=1) throw (InvalidDate) |
| | ~Date () throw () |
| double | julianDayNumber () const throw () |
| void | setYear (unsigned short year) |
| unsigned short | year () const throw () |
| void | setMonth (unsigned char month) throw (InvalidDate) |
| unsigned char | month () const throw () |
| unsigned char | daysInMonth () throw () |
| | Returns the number of days in stored month.
|
| void | setDay (unsigned char day) throw (InvalidDate) |
| unsigned char | day () const throw () |
| unsigned short | dayOfYear () const throw () |
| unsigned char | dayOfWeek () const throw () |
| bool | isInLeapYear () const throw () |
| | Test if date is in a leap year.
|
| Date & | operator+= (const TimeSpan &sp) |
| Date & | operator-= (const TimeSpan &sp) |
| bool | operator> (const Date &d) const throw () |
| bool | operator< (const Date &d) const throw () |
| bool | operator>= (const Date &d) const throw () |
| bool | operator<= (const Date &d) const throw () |
| bool | operator== (const Date &d) const throw () |
| bool | operator!= (const Date &d) const throw () |
Static Public Member Functions |
| unsigned char | daysInMonth (unsigned char month, unsigned short year) throw (InvalidDate) |
| | Returns the number of days in month.
|
| bool | isLeapYear (unsigned short year) throw () |
| | Test if the given year is a leap year.
|
Friends |
| PCORE_EXPORT friend std::ostream & | operator<< (std::ostream &os, const Date &d) |