Encoded time format is described in "OMex System Programmer's Manual". More...
Public Member Functions | |
OMexTime (uint32 time=0) | |
Constructs a OMexTime object from encoded time value. More... | |
OMexTime (const char(&strTime)[6]) | |
Constructs a OMexTime object from string representation. More... | |
int | hour () const |
Returns year. | |
int | minute () const |
Returns month. | |
int | second () const |
Returns day. | |
bool | isDefined () const |
Returns true if the time is valid/defined. | |
bool | operator== (const OMexTime &right) const |
Equal operator. | |
bool | operator!= (const OMexTime &right) const |
Not equal operator. | |
std::string | toString () const |
String representation. | |
std::string | toOMexString () const |
OMex string representation. | |
Static Public Member Functions | |
static OMexTime | now () |
Constructs a OMexTime object that is set to the current time. | |
static OMexTime | create (int hour, int minute, int second) |
Creates the encoded time representation. | |
Public Attributes | |
uint32 | time_n |
Encoded time format is described in "OMex System Programmer's Manual".
|
inlineexplicit |
Constructs a OMexTime object from encoded time value.
[in] | time | encoded time value. |