22 #ifndef GRAPHICS_MFC_ATLTIME_H 23 #define GRAPHICS_MFC_ATLTIME_H 25 #include "graphics/mfc/minwindef.h" 26 #include "graphics/mfc/afxstr.h" 41 int64 GetDays()
const;
42 int64 GetTotalHours()
const;
43 long GetHours()
const;
44 int64 GetTotalMinutes()
const;
45 long GetMinutes()
const;
46 int64 GetTotalSeconds()
const;
47 long GetSeconds()
const;
49 int64 GetTimeSpan()
const;
63 CString Format(
const char *pszFormat)
const;
64 CString Format(
unsigned int nID)
const;
72 static CTime WINAPI GetCurrentTime();
73 static bool WINAPI IsValidFILETIME(
const FILETIME &ft);
96 CTime &operator=(int64 time);
105 bool operator==(
CTime time)
const;
106 bool operator!=(
CTime time)
const;
107 bool operator<(
CTime time)
const;
108 bool operator>(
CTime time)
const;
109 bool operator<=(
CTime time)
const;
110 bool operator>=(
CTime time)
const;
112 int64 GetTime()
const;
115 int GetMonth()
const;
118 int GetMinute()
const;
119 int GetSecond()
const;
120 int GetDayOfWeek()
const;
123 CString Format(
const char *pszFormat)
const;
124 CString FormatGmt(
const char *pszFormat)
const;
125 CString Format(
unsigned int nFormatID)
const;
126 CString FormatGmt(
unsigned int nFormatID)
const;
153 int64 GetTimeSpan()
const;
154 void SetTimeSpan(int64 nSpan);
166 static CFileTime WINAPI GetCurrentTime();
184 uint64 GetTime()
const;
185 void SetTime(uint64 nTime);
190 static const uint64 Millisecond = 10000;
191 static const uint64 Second = Millisecond *
static_cast<uint64
>(1000);
192 static const uint64 Minute = Second *
static_cast<uint64
>(60);
193 static const uint64 Hour = Minute *
static_cast<uint64
>(60);
194 static const uint64 Day = Hour *
static_cast<uint64
>(24);
195 static const uint64 Week = Day *
static_cast<uint64
>(7);
Definition: formatinfo.h:28
Definition: atltime.h:160
Definition: minwindef.h:228
Definition: atltime.h:132
Definition: minwindef.h:223