time.h

来自「手机数据备份软件」· C头文件 代码 · 共 36 行

H
36
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?