32 STimeSpan(LONG lDays,
int nHours,
int nMins,
int nSecs);
153 __time64_t m_timeSpan;
193 STime(
int nYear,
int nMonth,
int nDay,
int nHour,
int nMin,
int nSec,
int nDST = -1);
201 void SetDate(
int nYear,
int nMonth,
int nDay);
213 void SetDateTime(
int nYear,
int nMonth,
int nDay,
int nHour,
int nMin,
int nSec,
int nDST = -1);
219 __time64_t GetTime()
const;
226 struct tm *GetLocalTm(
struct tm *ptm)
const;
233 bool GetAsSystemTime(SYSTEMTIME &timeDest)
const;
245 int GetMonth()
const;
263 int GetMinute()
const;
269 int GetSecond()
const;
275 int GetDayOfWeek()
const;
282 SStringT Format(LPCTSTR pszFormat)
const;
289 STime &operator=(__time64_t time);
331 bool operator==(
STime time)
const;
338 bool operator!=(
STime time)
const;
345 bool operator<(
STime time)
const;
352 bool operator>(
STime time)
const;
359 bool operator<=(
STime time)
const;
366 bool operator>=(
STime time)
const;
static STime GetCurrentTime()
获取当前时间
static uint64_t GetCurrentTimeMs()
获取当前时间的毫秒数
STime(__time64_t tm=0)
默认构造函数
bool operator!=(STimeSpan span) const
不等于运算符重载
LONGLONG GetTotalMinutes() const
获取总分钟数
LONGLONG GetDays() const
获取天数
LONG GetSeconds() const
获取秒数
bool operator<(STimeSpan span) const
小于运算符重载
LONGLONG GetTotalHours() const
获取总小时数
STimeSpan & operator-=(STimeSpan span)
减法赋值运算符重载
STimeSpan operator-(STimeSpan span) const
减法运算符重载
LONG GetMinutes() const
获取分钟数
bool operator>(STimeSpan span) const
大于运算符重载
bool operator==(STimeSpan span) const
等于运算符重载
LONG GetHours() const
获取小时数
bool operator>=(STimeSpan span) const
大于等于运算符重载
bool operator<=(STimeSpan span) const
小于等于运算符重载
STimeSpan operator+(STimeSpan span) const
加法运算符重载
__time64_t GetTimeSpan() const
获取时间间隔秒数
STimeSpan & operator+=(STimeSpan span)
加法赋值运算符重载
LONGLONG GetTotalSeconds() const
获取总秒数