#include <atltime.h>
|
| CTime () noexcept |
|
| CTime (__time64_t time) noexcept |
|
| CTime (int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, int nDST=-1) |
|
| CTime (WORD wDosDate, WORD wDosTime, int nDST=-1) |
|
| CTime (const SYSTEMTIME &st, int nDST=-1) noexcept |
|
| CTime (const FILETIME &ft, int nDST=-1) |
|
| CTime (const DBTIMESTAMP &dbts, int nDST=-1) noexcept |
|
CString | Format (LPCTSTR pszFormat) const |
|
CString | Format (UINT nFormatID) const |
|
CString | FormatGmt (LPCTSTR pszFormat) const |
|
CString | FormatGmt (UINT nFormatID) const |
|
bool | GetAsDBTIMESTAMP (DBTIMESTAMP &dbts) const noexcept |
|
bool | GetAsSystemTime (SYSTEMTIME &st) const noexcept |
|
int | GetDay () const noexcept |
|
int | GetDayOfWeek () const noexcept |
|
struct tm * | GetGmtTm (struct tm *ptm) const |
|
int | GetHour () const noexcept |
|
struct tm * | GetLocalTm (struct tm *ptm) const |
|
int | GetMinute () const noexcept |
|
int | GetMonth () const noexcept |
|
int | GetSecond () const noexcept |
|
__time64_t | GetTime () const noexcept |
|
int | GetYear () |
|
CTime | operator+ (CTimeSpan timeSpan) const noexcept |
|
CTime | operator- (CTimeSpan timeSpan) const noexcept |
|
CTimeSpan | operator- (CTime time) const noexcept |
|
CTime & | operator+= (CTimeSpan span) noexcept |
|
CTime & | operator-= (CTimeSpan span) noexcept |
|
CTime & | operator= (__time64_t time) noexcept |
|
bool | operator== (CTime time) const noexcept |
|
bool | operator!= (CTime time) const noexcept |
|
bool | operator< (CTime time) const noexcept |
|
bool | operator> (CTime time) const noexcept |
|
bool | operator<= (CTime time) const noexcept |
|
bool | operator>= (CTime time) const noexcept |
|
Definition at line 129 of file atltime.h.
◆ CTime() [1/7]
◆ CTime() [2/7]
ATL::CTime::CTime |
( |
__time64_t |
time | ) |
|
|
inlinenoexcept |
◆ CTime() [3/7]
Definition at line 143 of file atltime.h.
144 {
146 time.tm_year = nYear;
147 time.tm_mon = nMonth;
149 time.tm_hour = nHour;
152 time.tm_isdst = nDST;
154 }
__time64_t _mktime64(struct tm *ptm)
◆ CTime() [4/7]
ATL::CTime::CTime |
( |
WORD |
wDosDate, |
|
|
WORD |
wDosTime, |
|
|
int |
nDST = -1 |
|
) |
| |
|
inline |
Definition at line 156 of file atltime.h.
157 {
169 time.tm_isdst = nDST;
171 }
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
BOOL WINAPI DosDateTimeToFileTime(IN WORD wFatDate, IN WORD wFatTime, OUT LPFILETIME lpFileTime)
◆ CTime() [5/7]
◆ CTime() [6/7]
◆ CTime() [7/7]
◆ Format() [1/2]
Definition at line 213 of file atltime.h.
214 {
218#ifdef UNICODE
220#else
222#endif
224 return strTime;
225 }
void ReleaseBuffer(_In_ int nNewLength=-1)
size_t CDECL strftime(char *str, size_t max, const char *format, const struct tm *mstm)
size_t CDECL wcsftime(wchar_t *str, size_t max, const wchar_t *format, const struct tm *mstm)
◆ Format() [2/2]
Definition at line 227 of file atltime.h.
228 {
234#ifdef UNICODE
236#else
238#endif
240 return strTime;
241 }
BOOL LoadString(_In_ UINT nID)
◆ FormatGmt() [1/2]
Definition at line 243 of file atltime.h.
244 {
248#ifdef UNICODE
250#else
252#endif
254 return strTime;
255 }
errno_t _gmtime64_s(struct tm *ptm, const __time64_t *ptime)
◆ FormatGmt() [2/2]
Definition at line 257 of file atltime.h.
258 {
264#ifdef UNICODE
266#else
268#endif
270 return strTime;
271 }
◆ GetAsDBTIMESTAMP()
Definition at line 273 of file atltime.h.
274 {
284 return true;
285 }
◆ GetAsSystemTime()
Definition at line 287 of file atltime.h.
288 {
299 return true;
300 }
◆ GetCurrentTime()
◆ GetDay()
int ATL::CTime::GetDay |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetDayOfWeek()
int ATL::CTime::GetDayOfWeek |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetGmtTm()
Definition at line 323 of file atltime.h.
324 {
326 return ptm;
327 }
◆ GetHour()
int ATL::CTime::GetHour |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetLocalTm()
Definition at line 336 of file atltime.h.
337 {
339 return ptm;
340 }
◆ GetMinute()
int ATL::CTime::GetMinute |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetMonth()
int ATL::CTime::GetMonth |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetSecond()
int ATL::CTime::GetSecond |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetTime()
__time64_t ATL::CTime::GetTime |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetYear()
int ATL::CTime::GetYear |
( |
| ) |
|
|
inline |
◆ operator!=()
bool ATL::CTime::operator!= |
( |
CTime |
time | ) |
const |
|
inlinenoexcept |
◆ operator+()
Definition at line 380 of file atltime.h.
381 {
383 }
__time64_t GetTimeSpan() const noexcept
◆ operator+=()
Definition at line 395 of file atltime.h.
396 {
398 return *this;
399 }
GLenum GLenum GLvoid GLvoid GLvoid * span
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator-=()
Definition at line 401 of file atltime.h.
402 {
404 return *this;
405 }
◆ operator<()
bool ATL::CTime::operator< |
( |
CTime |
time | ) |
const |
|
inlinenoexcept |
◆ operator<=()
bool ATL::CTime::operator<= |
( |
CTime |
time | ) |
const |
|
inlinenoexcept |
◆ operator=()
CTime & ATL::CTime::operator= |
( |
__time64_t |
time | ) |
|
|
inlinenoexcept |
Definition at line 407 of file atltime.h.
408 {
410 return *this;
411 }
◆ operator==()
bool ATL::CTime::operator== |
( |
CTime |
time | ) |
const |
|
inlinenoexcept |
◆ operator>()
bool ATL::CTime::operator> |
( |
CTime |
time | ) |
const |
|
inlinenoexcept |
◆ operator>=()
bool ATL::CTime::operator>= |
( |
CTime |
time | ) |
const |
|
inlinenoexcept |
◆ m_nTime
__time64_t ATL::CTime::m_nTime |
|
private |
Definition at line 131 of file atltime.h.
Referenced by CTime(), Format(), FormatGmt(), GetAsDBTIMESTAMP(), GetAsSystemTime(), GetDay(), GetDayOfWeek(), GetGmtTm(), GetHour(), GetLocalTm(), GetMinute(), GetMonth(), GetSecond(), GetTime(), GetYear(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator<(), operator<=(), operator=(), operator==(), operator>(), and operator>=().
The documentation for this class was generated from the following file: