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:

voidClear(void)
uint32_tHour(void)
boolIsNull(void)
boolIsSet(void)
uint32_tMin(void)
uint32_tNoSecs(void)
uint32_tSec(void)
voidSetTime(hzTime& op)Set this hzTime instance to the supplied hzTime value Returns: None
hzEcodeSetTime(uint32_t h)uint32_t m, uint32_t s, Set this hzTime instance to time supplied as hours, minutes and seconds
hzEcodeSetTime(uint32_t nSecs)Set this hzTime instance using the number of seconds since midnight.
hzEcodeSetTime(const char* cpTimeStr)Set this hzTime using a string representation of the time. Allowed formats are hh:mm:ss, hh:mm and hhmmss
voidSysTime(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:

const char*operator const char *(void)
booloperator!(void)
booloperator!=(hzTime& op)
const char*operator*(void)
booloperator+=(uint32_t nSecs)
booloperator-=(uint32_t nSecs)
booloperator<(hzTime& op)
ostream&operator<<(ostream& os)hzTime& Time,
booloperator<=(hzTime& op)
hzTime&operator=(hzTime& op)
hzTime&operator=(uint32_t vxxSecs)
hzTime&operator=(const char* cpTime)
hzTime&operator=(hzString& time)
booloperator==(hzTime& op)
booloperator>(hzTime& op)
booloperator>=(hzTime& op)

Member Variables:

uint32_tm_secsNo of seconds since midnight