23 #ifndef __ccxx_Time_hxx 24 #define __ccxx_Time_hxx 57 void setHour12(
uint_t hour,
bool pm =
false);
60 void setMinute(
uint_t minute);
63 void setSecond(
uint_t second);
66 void setMillisecond(
uint_t msec);
77 {
return(_hour == 0 ? 12 : _hour % 12); }
81 {
return(_hour >= 12); }
85 {
return(_hour < 12); }
104 {
return(!
operator==(other)); }
107 {
return(!
operator<=(other)); }
110 {
return(!
operator<(other)); }
126 #endif // __ccxx_Time_hxx
bool isPM() const
Test if the hour is post meridiem.
Definition: Time.h++:80
bool operator<=(const Blob &b1, const Blob &b2)
Definition: Blob.h++:356
bool operator==(const Blob &b1, const Blob &b2)
Definition: Blob.h++:344
bool operator!=(const Time &other) const
Definition: Time.h++:103
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
uint_t getMillisecond() const
Get the millisecond component of the time.
Definition: Time.h++:96
bool operator>=(const Time &other) const
Definition: Time.h++:109
bool isAM() const
Test if the hour is ante meridiem.
Definition: Time.h++:84
A representation of a clock time.
Definition: Time.h++:37
#define COMMONCPP_API
Definition: Common.h++:126
uint_t getHour() const
Get the hour component of the time.
Definition: Time.h++:72
uint_t getHour12() const
Get the hour component of the time (12-hour clock).
Definition: Time.h++:76
uint_t getMinute() const
Get the minute component of the time.
Definition: Time.h++:88
bool operator<(const Blob &b1, const Blob &b2)
Definition: Blob.h++:350
bool operator>(const Time &other) const
Definition: Time.h++:106
uint_t getSecond() const
Get the second component of the time.
Definition: Time.h++:92
Definition: AllocationMap.c++:25