|
Public Methods |
| | Date (time_t tm) |
| | Date (tm *dt) |
| | Date (char *str, size_t size=0) |
| | Date (int year, unsigned month, unsigned day) |
| | Date () |
| int | getYear (void) |
| unsigned | getMonth (void) |
| unsigned | getDay (void) |
| unsigned | getDayOfWeek (void) |
| char * | getDate (char *buffer) |
| time_t | getDate (void) |
| long | getValue (void) |
| tm * | getDate (tm *buf) |
| void | setDate (char *str, size_t size=0) |
| bool | isValid (void) |
| | operator long () |
| std::string | operator() () |
| Date & | operator++ () |
| Date & | operator-- () |
| Date & | operator+= (long val) |
| Date & | operator-= (long val) |
| int | operator== (Date &date) |
| int | operator!= (Date &date) |
| int | operator< (Date &date) |
| int | operator<= (Date &date) |
| int | operator> (Date &date) |
| int | operator>= (Date &date) |
| bool | operator! () |
Protected Methods |
| void | toJulian (long year, long month, long day) |
| void | fromJulian (char *buf) |
| virtual void | update (void) |
| | A method to use to "post" any changed values when shadowing a mixed object class.
|
Protected Attributes |
| long | julian |
Friends |
| Date | operator+ (Date &date, long val) |
| Date | operator- (Date &date, long val) |
| Date | operator+ (long val, Date &date) |
| Date | operator- (long val, Date &date) |
This is then manipulated in several forms and may be exported as needed.