#include <MAP/DateTime.h>
Public Member Functions | |
| DateTime () | |
| DateTime (time_t t) | |
| DateTime (tm *tim) | |
| DateTime (int year, int month, int day) | |
| DateTime (int year, int month, int day, int hour, int minute, int second) | |
| DateTime (const char *dateString) | |
| ~DateTime () | |
| TimeSpan | timeOfDay () const |
| time_t | getTicks () const |
| int | getYear () const |
| int | getMonth () const |
| int | getWeekday () const |
| int | getDay () const |
| int | getHour () const |
| int | getMinute () const |
| int | getSecond () const |
| DateTime | add (TimeSpan timeSpan) const |
| DateTime | addYears (int years) const |
| DateTime | addMonths (int months) const |
| DateTime | addDays (double days) const |
| DateTime | addHours (double hours) const |
| DateTime | addMinutes (double minutes) const |
| DateTime | addSeconds (double seconds) const |
| DateTime | addTicks (int ticks) const |
| TimeSpan | subtract (DateTime ts) const |
| DateTime | subtract (TimeSpan span) const |
Static Public Member Functions | |
| static DateTime | maxValue () |
| static DateTime | minValue () |
| static DateTime | now () |
| static DateTime | today () |
|
|
Constructs a DateTime with default value. |
|
|
|
|
|
Constructs a DateTime from the specified tm structure. |
|
||||||||||||||||
|
Constructs a DateTime from the specified year, month, and day. Time of day is set to 00:00:00. |
|
||||||||||||||||||||||||||||
|
Constructs a DateTime from the specified year, month, day, hour, minute, and second. |
|
|
Constructs a DateTime by parsing the specified string. |
|
|
Destructs a DateTime. |
|
|
Returns the maximum value that can be represented by a DateTime. |
|
|
Returns the smallest value that can be represented by a DateTime. |
|
|
returns current local time as a DateTime. |
|
|
returns today's date in local time, as a DateTime. |
|
|
Returns time of day as a TimeSpan from midnight. |
|
|
Returns number of ticks since January 1, 1970. A tick is one second. |
|
|
Returns the year component of a DateTime. |
|
|
Returns the month component of a DateTime. |
|
|
Returns the weekday component of a DateTime. |
|
|
Returns the day of month component of a DateTime. |
|
|
Returns the hour component of a DateTime. |
|
|
Returns the minute component of a DateTime. |
|
|
Returns the second component of a DateTime. |
|
|
Adds a TimeSpan to current value and returns as a new DateTime. |
|
|
Adds specified number of seconds to current value and returns as a new DateTime. |
|
|
Adds specified number of monts to current value and returns as a new DateTime. |
|
|
Adds specified number of days to current value and returns as a new Datetime. |
|
|
Adds specified number of hours to current value and returns as a new DateTime. |
|
|
Adds specified number of minutes to current value and returns as a new DateTime. |
|
|
Adds specified number of seconds to current value and returns as a new DateTime. |
|
|
Adds ticks to current value and returns as a new DateTime. |
|
|
Returns time span between current value and specified DateTime as a TimeSpan. |
|
|
Subtracts a timespan from current value and returns as a new DateTime. |
1.4.6-NO