|
| Datetime () |
| Create a Datetime object with empty values. More...
|
|
| Datetime (const Date &date, const Time &time) |
| Create a Datetime object with the values from the given Date and Time objects. More...
|
|
| Datetime (unsigned short year, unsigned short month, unsigned short day, unsigned short hour, unsigned short minute, unsigned short second, unsigned short millis=0) |
| Create a Datetime object with the given values. More...
|
|
unsigned short | getYear () const |
| Get the year part of the Datetime. More...
|
|
unsigned short | getMonth () const |
| Get the month part of the Datetime. More...
|
|
unsigned short | getDay () const |
| Get the day part of the Datetime. More...
|
|
unsigned short | getHour () const |
| Get the hour part of the Datetime. More...
|
|
unsigned short | getMinute () const |
| Get the minute part of the Datetime. More...
|
|
unsigned short | getSecond () const |
| Get the second part of the Datetime. More...
|
|
unsigned short | getMillis () const |
| Get the millisecond part of the Datetime. More...
|
|
Date | getDate () const |
|
Time | getTime () const |
|
bool | isNull () const |
|
std::string | getIso () const |
| Get the date in ISO format (yyyy-mm-dd hh:mm:ss.hhh) More...
|
|
void | set (unsigned short year, unsigned short month, unsigned short day, unsigned short hour, unsigned short minute, unsigned short second, unsigned short millis=0) |
| Set the date and the time. More...
|
|
bool | operator== (const Datetime &dt) const |
|
bool | operator!= (const Datetime &dt) const |
|
bool | operator< (const Datetime &dt) const |
|
bool | operator> (const Datetime &dt) const |
|
bool | operator<= (const Datetime &dt) const |
|
bool | operator>= (const Datetime &dt) const |
|
This class holds a date and a time.