|
| | Time () |
| | Construct a new Time initialized to 0:00:00:000. More...
|
| |
| | Time (uint_t hour, uint_t minute, uint_t second=0, uint_t msec=0) |
| | Construct a new Time with the given components. More...
|
| |
| | Time (const Time &other) |
| | Copy constructor. More...
|
| |
| virtual | ~Time () |
| | Destructor. More...
|
| |
| void | setHour (uint_t hour) |
| | Set the hour component of the time. More...
|
| |
| void | setHour12 (uint_t hour, bool pm=false) |
| | Set the hour component of the time (12-hour clock). More...
|
| |
| void | setMinute (uint_t minute) |
| | Set the minute component of the time. More...
|
| |
| void | setSecond (uint_t second) |
| | Set the second component of the time. More...
|
| |
| void | setMillisecond (uint_t msec) |
| | Set the millisecond component of the time. More...
|
| |
| void | setTime (uint_t hour, uint_t minute, uint_t second=0, uint_t msec=0) |
| | Set the hour, minute, second, and millisecond components of the time. More...
|
| |
| uint_t | getHour () const |
| | Get the hour component of the time. More...
|
| |
| uint_t | getHour12 () const |
| | Get the hour component of the time (12-hour clock). More...
|
| |
| bool | isPM () const |
| | Test if the hour is post meridiem. More...
|
| |
| bool | isAM () const |
| | Test if the hour is ante meridiem. More...
|
| |
| uint_t | getMinute () const |
| | Get the minute component of the time. More...
|
| |
| uint_t | getSecond () const |
| | Get the second component of the time. More...
|
| |
| uint_t | getMillisecond () const |
| | Get the millisecond component of the time. More...
|
| |
| bool | operator== (const Time &other) const |
| |
| bool | operator< (const Time &other) const |
| |
| bool | operator<= (const Time &other) const |
| |
| bool | operator!= (const Time &other) const |
| |
| bool | operator> (const Time &other) const |
| |
| bool | operator>= (const Time &other) const |
| |
| Time & | operator= (const Time &other) |
| |
A representation of a clock time.
- Author
- Mark Lindner