Defined in file: hzDate.h
hzTime is a data type to represent the time of day. It has allowed range of 00:00:00 (midnight) thru to 23:59:59. The minimum unit is the second.
Constructors/Detructors
| hzTime* | hzTime | (void) | |
| void | ~hzTime | (void) |
Public Methods:
| void | Clear | (void) | |
| uint32_t | Hour | (void) | |
| bool | IsNull | (void) | |
| bool | IsSet | (void) | |
| uint32_t | Min | (void) | |
| uint32_t | NoSecs | (void) | |
| uint32_t | Sec | (void) | |
| void | SetTime | (hzTime& op) | Set this hzTime instance to the supplied hzTime value Returns: None |
| hzEcode | SetTime | (uint32_t h)uint32_t m, uint32_t s, | Set this hzTime instance to time supplied as hours, minutes and seconds |
| hzEcode | SetTime | (uint32_t nSecs) | Set this hzTime instance using the number of seconds since midnight. |
| hzEcode | SetTime | (const char* cpTimeStr) | Set this hzTime using a string representation of the time. Allowed formats are hh:mm:ss, hh:mm and hhmmss |
| void | SysTime | (void) | Set this hzTime instance to the system clock Arguments: None Returns: None |
| const char* | Txt | (hzDateFmt eFmt) | Write the time as per the supplied format. Pointer to buffer populated with the time in text form. Note: The space required is allocated from the thread scratch pad and must not be deleted by the calling function. |
Overloaded operators:
Member Variables:
| uint32_t | m_secs | No of seconds since midnight |