![]() |
MikroCAD SDK Library
|
DateTime class.
Public Member Functions | |
| CDateTime () | |
| Standard constructor. | |
| CDateTime (DWORD dwDate) | |
| Constructor with date. More... | |
| CDateTime (ULONGLONG ulDateTime) | |
| Constructor with date time. More... | |
| CDateTime (WORD wYear, WORD wMonth, WORD wDay) | |
| Constructor with year, month, day. More... | |
| CDateTime (WORD wYear, WORD wMonth, WORD wDay, WORD wHour, WORD wMin, WORD wSec=0, WORD wSec100=0) | |
| Constructor with year, month, day, hour, minute, second, hundredth second. More... | |
| wstring | DateString (eDateFormat Format) |
| Date as string. More... | |
| wstring | DateString (wstring stFormat) |
| Date as string. More... | |
| WORD | GetDay () |
| Get day. | |
| WORD | GetHour () |
| Get hour. | |
| WORD | GetHundredthSecond () |
| Get hundredth second. | |
| WORD | GetMinute () |
| Get minute. | |
| WORD | GetMonth () |
| Get Month. | |
| WORD | GetSecond () |
| Get second. | |
| WORD | GetYear () |
| Get year. | |
| void | Initialize () |
| Initialize. | |
| void | Initialize (DWORD dwDate) |
| Initialize with date. More... | |
| void | Initialize (ULONGLONG ulDateTime) |
| Initialize with date time. More... | |
| void | Initialize (WORD wYear, WORD wMonth, WORD wDay) |
| Initialize with year, month, day. More... | |
| void | Initialize (WORD wYear, WORD wMonth, WORD wDay, WORD wHour, WORD wMin, WORD wSec=0, WORD wSec100=0) |
| Initialize with year, month, day, hour, minute, second, hundredth second. More... | |
| CDateTime & | operator= (const CDateTime &DateTime) |
| Copy operator. | |
| wstring | TimeString (eTimeFormat Format) |
| Time as string. More... | |
| wstring | TimeString (wstring stFormat) |
| Time as string. More... | |
Static Public Member Functions | |
| static DWORD | DateAsBinary (CDateTime &DateTime) |
| Convert Date time object to DWORD (time is unconsidered) More... | |
| static wstring | DateAsStandardString (CDateTime &DateTime) |
| Convert Date time to standard string(time is unconsidered) More... | |
| static CDateTime | DateFromBinary (DWORD dwDate) |
| Convert DWORD to Date time object (time is unconsidered) More... | |
| static bool | DateFromStandardString (wstring stDate, CDateTime &Date) |
| Convert standard string to Date time object to DWORD (time is unconsidered) More... | |
| static ULONGLONG | DateTimeAsBinary (CDateTime &DateTime) |
| Convert DateTime object to ULONGLONG (time is unconsidered) More... | |
| static double | DateTimeAsDouble (CDateTime &DateTime) |
| Convert DateTime object to double. More... | |
| static wstring | DateTimeAsStandardString (CDateTime &DateTime) |
| Convert DateTime object to standard wide string (time is unconsidered) More... | |
| static string | DateTimeAsStandardStringA (CDateTime &DateTime) |
| Convert DateTime object to standard string (time is unconsidered) More... | |
| static CDateTime | DateTimeFromBinary (ULONGLONG ulDateTime) |
| Convert ULONGLONG to DateTime object (time is unconsidered) More... | |
| static bool | DateTimeFromStandardString (wstring stDateTime, CDateTime &DateTime) |
| Convert standard string to Date time object to DWORD. More... | |
| static bool | IsLeapYear (WORD wYear) |
| Is year a leap year. More... | |
| static CDateTime | Now () |
| Get current date time. | |
| CDateTime::CDateTime | ( | DWORD | dwDate | ) |
Constructor with date.
| dwDate | Date |
| CDateTime::CDateTime | ( | ULONGLONG | ulDateTime | ) |
Constructor with date time.
| ulDateTime | Date time |
| CDateTime::CDateTime | ( | WORD | wYear, |
| WORD | wMonth, | ||
| WORD | wDay | ||
| ) |
Constructor with year, month, day.
| wYear | Year |
| wMonth | Month |
| wDay | Day |
| CDateTime::CDateTime | ( | WORD | wYear, |
| WORD | wMonth, | ||
| WORD | wDay, | ||
| WORD | wHour, | ||
| WORD | wMin, | ||
| WORD | wSec = 0, |
||
| WORD | wSec100 = 0 |
||
| ) |
Constructor with year, month, day, hour, minute, second, hundredth second.
| wYear | Year |
| wMonth | Month |
| wDay | Day |
| wHour | Hour |
| wMin | Minute |
| wSec | Second |
| wSec100 | Hundredth second |
|
static |
Convert Date time object to DWORD (time is unconsidered)
| DateTime | DateTime object |
|
static |
Convert Date time to standard string(time is unconsidered)
| DateTime | DateTime object |
|
static |
Convert DWORD to Date time object (time is unconsidered)
| dwDate | Date |
|
static |
Convert standard string to Date time object to DWORD (time is unconsidered)
| stDate | Date as standard string |
| Date | Output date |
| wstring CDateTime::DateString | ( | eDateFormat | Format | ) |
Date as string.
| Format | Pre-defined format |
| wstring CDateTime::DateString | ( | wstring | stFormat | ) |
Date as string.
| stFormat | User-defined format |
|
static |
Convert DateTime object to ULONGLONG (time is unconsidered)
| DateTime | Date Time |
|
static |
Convert DateTime object to double.
| DateTime | Date Time |
|
static |
Convert DateTime object to standard wide string (time is unconsidered)
| DateTime | Date Time |
|
static |
Convert DateTime object to standard string (time is unconsidered)
| DateTime | Date Time |
|
static |
Convert ULONGLONG to DateTime object (time is unconsidered)
| ulDateTime | Date as ULONGLONG |
|
static |
Convert standard string to Date time object to DWORD.
| stDateTime | Date and time as standard string |
| DateTime | Output date |
| void CDateTime::Initialize | ( | DWORD | dwDate | ) |
Initialize with date.
| dwDate | Date |
| void CDateTime::Initialize | ( | ULONGLONG | ulDateTime | ) |
Initialize with date time.
| ulDateTime | Date time |
| void CDateTime::Initialize | ( | WORD | wYear, |
| WORD | wMonth, | ||
| WORD | wDay | ||
| ) |
Initialize with year, month, day.
| wYear | Year |
| wMonth | Month |
| wDay | Day |
| void CDateTime::Initialize | ( | WORD | wYear, |
| WORD | wMonth, | ||
| WORD | wDay, | ||
| WORD | wHour, | ||
| WORD | wMin, | ||
| WORD | wSec = 0, |
||
| WORD | wSec100 = 0 |
||
| ) |
Initialize with year, month, day, hour, minute, second, hundredth second.
| wYear | Year |
| wMonth | Month |
| wDay | Day |
| wHour | Hour |
| wMin | Minute |
| wSec | Second |
| wSec100 | Hundredth second |
|
static |
Is year a leap year.
| wYear | Year |
| wstring CDateTime::TimeString | ( | eTimeFormat | Format | ) |
Time as string.
| Format | Pre-defined format |
| wstring CDateTime::TimeString | ( | wstring | stFormat | ) |
Time as string.
| stFormat | User-defined format |