Public Member Functions | |
DateTime () | |
DateTime (const DateTime &dt) | |
DateTime (int year, int month, int day, int hour=0, int minute=0, int second=0) | |
DateTime (const struct tm &) | |
void | now () |
double | getModifiedJulianDate () const |
DateTime | getGMT () const |
void | setYear (int year) |
int | getYear () const |
void | setMonth (int month) |
int | getMonth () const |
std::string | getMonthString () const |
void | setDayOfMonth (int day) |
int | getDayOfMonth () const |
int | getDayOfYear () const |
int | getDayOfWeek () const |
std::string | getDayOfWeekString () const |
void | setHour (int hr) |
int | getHour () const |
void | setMinute (int min) |
int | getMinute () const |
void | setSecond (int sec) |
int | getSecond () const |
bool | isDaylightSavingsTime () const |
Static Public Member Functions | |
static std::string | getMonthString (int month) |
static std::string | getDayOfWeekString (int weekday) |
|
Default Constructor |
|
Copy Constructor |
|
Constructor with parameters
|
|
Constructor with parameter
|
|
Get the day of the month |
|
Get the day of the week range 1 - 7 base on the current date. |
|
Static method to get the name of day of the week with a parameter.
|
|
Get an std::string with the name of the day of the week based on the current date. |
|
Get the day of the year, range 1 - 366 based on the current date. |
|
Get the Greenwhich Mean Time from the current date and time. |
|
Get the current hour. Returns an integer ranging 0 - 23. |
|
Get the current minute of the hour. Returns an integer ranging 0 - 59. |
|
get the Modified Julian Date based on GMT, from the current date and time. |
|
Get the current month. |
|
Static method to get the name of a month, based on a parameter.
|
|
Get a std::string representing the name of the current month. |
|
Get the current second of the minute. Returns an integer ranging 0 - 59. |
|
Get the current year. |
|
Return a boolean value indicating whether the currently set date falls during daylight savings time. |
|
Set the current date and time to NOW. |
|
Set the day of the month.
|
|
Set the current hour of the day
|
|
Set the current minute of the hour
|
|
Set the month.
|
|
Set the current second of the minute
|
|
Set the current month
|