Encoded series date helper. More...
Classes | |
struct | YMD |
Year/Month/Day structure. More... | |
Public Member Functions | |
OMexDate (uint16 date=0) | |
Constructs a OMexDate object from encoded date value. More... | |
OMexDate (const char(&strDate)[8]) | |
Constructs a OMexDate object from string representation. More... | |
OMexDate (const char(&strDate)[6]) | |
Constructs a OMexDate object from string representation. More... | |
int | year () const |
Returns year. | |
int | month () const |
Returns month. | |
int | day () const |
Returns day. | |
bool | isDefined () const |
Returns true if the date is valid/defined. | |
void | getYMD (int &year, int &month, int &day) |
Retrieves date. | |
YMD | getYMD () |
Retrieves date. | |
bool | operator== (const OMexDate &right) const |
Equal operator. | |
bool | operator!= (const OMexDate &right) const |
Not equal operator. | |
std::string | toString () const |
String representation. | |
std::string | toOMexString () const |
OMex string representation. | |
Static Public Member Functions | |
static OMexDate | now () |
Constructs a OMexDate object that is set to the current date. | |
static OMexDate | create (int year, int month, int day) |
Creates the encoded time representation. | |
Public Attributes | |
uint16 | date_n |
Encoded series date helper.
Encoded date format is described in "OMex System Programmer's Manual".
|
inlineexplicit |
Constructs a OMexDate object from encoded date value.
[in] | date | encoded date value. |
|
explicit |
Constructs a OMexDate object from string representation.
[in] | strDate | Format: YYYYMMDD. |