⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sh_time.h

📁 rsa算法打的一个包
💻 H
字号:
// SH_Time.h: interface for the SH_Time class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SH_TIME_H__B43F456E_DFA4_40F7_8274_F812946A7989__INCLUDED_)
#define AFX_SH_TIME_H__B43F456E_DFA4_40F7_8274_F812946A7989__INCLUDED_

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

#include "SH_Object.h"

class AFX_EXT_CLASS SH_Time :public SH_Object
{
public:
	static SH_Time PASCAL GetCurrentTime();
	SH_Time();
	SH_Time(time_t time);
	SH_Time(int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec,int nDST = -1);
	SH_Time(WORD wDosDate, WORD wDosTime, int nDST = -1);
	SH_Time(const SH_Time& timeSrc);
	SH_Time(const SYSTEMTIME& sysTime, int nDST = -1);
	SH_Time(const FILETIME& fileTime, int nDST = -1);
    virtual ~SH_Time();
	
    const SH_Time& operator=(const SH_Time& timeSrc);
	const SH_Time& operator=(time_t t);

	struct tm* GetGmtTm(struct tm* ptm = NULL) const;
	struct tm* GetLocalTm(struct tm* ptm = NULL) const;
	BOOL GetAsSystemTime(SYSTEMTIME& timeDest) const;

	time_t GetTime() const;
	int GetYear() const;
	int GetMonth() const;       // month of year (1 = Jan)
	int GetDay() const;         // day of month
	int GetHour() const;
	int GetMinute() const;
	int GetSecond() const;
	int GetDayOfWeek() const;   // 1=Sun, 2=Mon, ..., 7=Sat

	BOOL operator==(SH_Time time) const;
	BOOL operator!=(SH_Time time) const;
	BOOL operator<(SH_Time time) const;
	BOOL operator>(SH_Time time) const;
	BOOL operator<=(SH_Time time) const;
	BOOL operator>=(SH_Time time) const;

private:
	time_t m_time;
};
#endif // !defined(AFX_SH_TIME_H__B43F456E_DFA4_40F7_8274_F812946A7989__INCLUDED_)

⌨️ 快捷键说明

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