Public Member Functions | |
std::string | toString () const |
string representation of | |
bool | operator== (const Date &right) const |
comparison | |
bool | operator!= (const Date &right) const |
bool | operator< (const Date &right) const |
bool | operator> (const Date &right) const |
bool | operator<= (const Date &right) const |
bool | operator>= (const Date &right) const |
Constructor | |
Date () | |
Date (UInt8 day, UInt8 month, UInt16 year) | |
default constructor. More... | |
Accessors | |
UInt16 | getYear () const |
Returns the year. More... | |
UInt8 | getMonth () const |
Returns the month, value in range [1..12]. | |
UInt8 | getDay () const |
Returns the day. More... | |
void | setYear (UInt16 y) |
void | setMonth (UInt8 m) |
void | setDay (UInt8 d) |
Date.
Date | ( | UInt8 | day, |
UInt8 | month, | ||
UInt16 | year | ||
) |
default constructor.
all fields are set to zero
UInt8 getDay | ( | ) | const |
Returns the day.
valid range is [1..31]
UInt16 getYear | ( | ) | const |
Returns the year.