A type representing the combination of date and time. More...
#include <utils_time.h>
Public Member Functions | |
DateTime () | |
Create an empty date time value. | |
DateTime | ToLocalTime () |
Convert the UTC time to the local time. | |
DateTime | ToUTCTime () |
Convert the local time to the UTC time. | |
DateTime | Forward (int imilliseconds) |
Move forward by the delta in milliseconds. | |
DateTime | Backward (int imilliseconds) |
Move backward by the delta in milliseconds. | |
bool | operator== (const DateTime &value) const |
bool | operator!= (const DateTime &value) const |
bool | operator< (const DateTime &value) const |
bool | operator<= (const DateTime &value) const |
bool | operator> (const DateTime &value) const |
bool | operator>= (const DateTime &value) const |
Static Public Member Functions | |
static DateTime | LocalTime () |
Get the current local time. | |
static DateTime | UTCTime () |
Get the current UTC time. | |
static DateTime | FromDateTime (int iyear, int imonth, int iday, int ihour=0, int iminute=0, int isecond=0, int imillisecond=0) |
Create a date time value from each time element value. | |
static DateTime | FromFileTime (vuint64_t ifiletime) |
Create a date time value from FILETIME. | |
A type representing the combination of date and time.
Refers to the DateTime struct implemented in Vlpp by vczh.