|
| | Datetime () |
| | Create a Datetime object with empty values.
|
| | Datetime (const Date &date, const Time &time) |
| | Create a Datetime object with the values from the given Date and Time objects.
|
| | 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.
|
| unsigned short | getYear () const |
| | Get the year part of the Datetime.
|
| unsigned short | getMonth () const |
| | Get the month part of the Datetime.
|
| unsigned short | getDay () const |
| | Get the day part of the Datetime.
|
| unsigned short | getHour () const |
| | Get the hour part of the Datetime.
|
| unsigned short | getMinute () const |
| | Get the minute part of the Datetime.
|
| unsigned short | getSecond () const |
| | Get the second part of the Datetime.
|
| unsigned short | getMillis () const |
| | Get the millisecond part of the Datetime.
|
|
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).
|
| 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.
|
|
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.