Public Types |
| enum | Weekday {
Invalid = 0,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
Sunday
} |
Public Member Functions |
| | DateTime (time_s_t time) throw () |
| | Construct a DateTime for the given system time.
|
| | DateTime (time_ms_t time=0) throw () |
| | Construct a DateTime for the given time (or the current time).
|
| | DateTime (uint_t day, uint_t month, uint_t year, uint_t hour=0, uint_t minute=0, uint_t second=0, uint_t msec=0) throw () |
| | Construct a DateTime with the given components.
|
| | DateTime (const Date &date, const Time &time) throw () |
| | Construct a DateTime from the given Date and Time.
|
| | DateTime (const Date &date) throw () |
| | Construct a DateTime for the given Date.
|
| | DateTime (const Time &time) throw () |
| | Construct a DateTime for the given Time.
|
| | DateTime (const DateTime &other) throw () |
| | Copy constructor.
|
| virtual | ~DateTime () throw () |
| | Destructor.
|
| DateTime & | normalize () throw () |
| | Normalize the DateTime.
|
| | operator time_s_t () const throw () |
| | Cast operator.
|
| | operator time_ms_t () const throw () |
| | Cast operator.
|
| bool | operator== (const DateTime &other) const throw () |
| bool | operator< (const DateTime &other) const throw () |
| bool | operator<= (const DateTime &other) const throw () |
| bool | operator!= (const DateTime &other) const throw () |
| bool | operator> (const DateTime &other) const throw () |
| bool | operator>= (const DateTime &other) const throw () |
| DateTime & | operator= (time_s_t other) throw () |
| DateTime & | operator= (time_ms_t other) throw () |
| DateTime & | operator= (const DateTime &other) throw () |
| void | setTime (uint_t hour, uint_t minute, uint_t second=0, uint_t msec=0) throw () |
| | Set the hour, minute, second, and millisecond components of the time.
|
| void | setDate (uint_t day, uint_t month, uint_t year) throw () |
| | Set the day, month, and year components of the date.
|
| DateTime & | setDate (const Date &other) throw () |
| | Set the date portion of the DateTime.
|
| DateTime & | setTime (const Time &other) throw () |
| | Set the time portion of the DateTime.
|
| DateTime & | operator+= (const TimeSpan &span) throw () |
| | Add a TimeSpan to this DateTime.
|
| DateTime & | operator-= (const TimeSpan &span) throw () |
| | Subtract a TimeSpan from this DateTime.
|
| void | setMonth (uint_t month) throw () |
| | Set the month component of the date.
|
| void | setDay (uint_t day) throw () |
| | Set the day-of-month component of the date.
|
| void | setYear (uint_t year) throw () |
| | Set the year component of the date.
|
| uint_t | getMonth () const throw () |
| | Get the month component of the date.
|
| uint_t | getDay () const throw () |
| | Get the day-of-month component of the date.
|
| uint_t | getYear () const throw () |
| | Get the year component of the date.
|
| Weekday | getWeekday () const throw () |
| | Get the weekday of the date.
|
| uint_t | getDayOfYear () const throw () |
| | Get the day of the year.
|
| uint_t | getWeekOfYear () const throw () |
| | Get the week number of the year, where weeks are defined as beginning on Monday (ISO standard).
|
| bool | isValid () const throw () |
| | Test if the date is valid.
|
| bool | operator== (const Date &other) const throw () |
| bool | operator< (const Date &other) const throw () |
| bool | operator<= (const Date &other) const throw () |
| bool | operator!= (const Date &other) const throw () |
| bool | operator> (const Date &other) const throw () |
| bool | operator>= (const Date &other) const throw () |
| void | setHour (uint_t hour) throw () |
| | Set the hour component of the time.
|
| void | setHour12 (uint_t hour, bool pm=false) throw () |
| | Set the hour component of the time (12-hour clock).
|
| void | setMinute (uint_t minute) throw () |
| | Set the minute component of the time.
|
| void | setSecond (uint_t second) throw () |
| | Set the second component of the time.
|
| void | setMillisecond (uint_t msec) throw () |
| | Set the millisecond component of the time.
|
| uint_t | getHour () const throw () |
| | Get the hour component of the time.
|
| uint_t | getHour12 () const throw () |
| | Get the hour component of the time (12-hour clock).
|
| bool | isPM () const throw () |
| | Test if the hour is post meridiem.
|
| bool | isAM () const throw () |
| | Test if the hour is ante meridiem.
|
| uint_t | getMinute () const throw () |
| | Get the minute component of the time.
|
| uint_t | getSecond () const throw () |
| | Get the second component of the time.
|
| uint_t | getMillisecond () const throw () |
| | Get the millisecond component of the time.
|
| bool | operator== (const Time &other) const throw () |
| bool | operator< (const Time &other) const throw () |
| bool | operator<= (const Time &other) const throw () |
| bool | operator!= (const Time &other) const throw () |
| bool | operator> (const Time &other) const throw () |
| bool | operator>= (const Time &other) const throw () |
Static Public Member Functions |
| static bool | isDSTActive () throw () |
| | Test if Daylight Saving Time is in effect for the current local time.
|
| static int | getGMTOffset () throw () |
| | Get the offset, in seconds, between local time and GMT.
|
| static String | getTimeZone () throw () |
| | Get the name of the local time zone.
|
| static bool | isLeapYear (uint_t year) throw () |
| | Test if a year is a leap year.
|
Static Public Attributes |
| static const uint_t | JAN = 1 |
| | The month of January.
|
| static const uint_t | FEB = 2 |
| | The month of February.
|
| static const uint_t | MAR = 3 |
| | The month of March.
|
| static const uint_t | APR = 4 |
| | The month of April.
|
| static const uint_t | MAY = 5 |
| | The month of May.
|
| static const uint_t | JUN = 6 |
| | The month of June.
|
| static const uint_t | JUL = 7 |
| | The month of July.
|
| static const uint_t | AUG = 8 |
| | The month of August.
|
| static const uint_t | SEP = 9 |
| | The month of September.
|
| static const uint_t | OCT = 10 |
| | The month of October.
|
| static const uint_t | NOV = 11 |
| | The month of November.
|
| static const uint_t | DEC = 12 |
| | The month of December.
|
A representation of a calendar date and clock time.