stddate.h

来自「beereader source code」· C头文件 代码 · 共 34 行

H
34
字号
// StdDate.h: interface for the CStdDate class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STDDATE_H__4D819DE1_B5A3_4896_A1DF_49BDB107B0AB__INCLUDED_)
#define AFX_STDDATE_H__4D819DE1_B5A3_4896_A1DF_49BDB107B0AB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define ZONE_GMT   0
#define ZONE_EST   1
#define ZONE_CST   2
#define ZONE_MST   3
#define ZONE_PST   4

class CStdDate  
{
public:
	static CString GetDateString( CTime time );
	static CTime TranDateString( CString szDate );
	CTime GetDateTime();
	void SetDateTime( CString date );
	void SetDateTime( CTime date );
	CString GetTimeString();
	CStdDate();
	virtual ~CStdDate();
private:
	CTime	m_Time;
};

#endif // !defined(AFX_STDDATE_H__4D819DE1_B5A3_4896_A1DF_49BDB107B0AB__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?