📄 time.h
字号:
// Time.h: interface for the CTime class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _TIME_H_
#define _TIME_H_
#include "stdafx.h"
class CTime
{
public:
TCHAR * Format(LPCTSTR pFormat) const;
CTime(int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec);
CTime(const SYSTEMTIME& sysTime);
CTime(const FILETIME& fileTime);
CTime(const CTime& tmTime);
WORD GetDayOfWeek() const;
WORD GetDay() const;
WORD GetMonth() const;
WORD GetYear() const;
WORD GetSecond() const;
WORD GetMinute() const;
WORD GetHour() const;
CTime __stdcall GetCurrentTime() ;
CTime();
virtual ~CTime();
const CTime& operator=(const CTime& tmTime);
BOOL operator==(CTime time) const;
private:
SYSTEMTIME m_Time;
BOOL m_bFlag;
};
#endif //_TIME_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -