📄 timeclass.h
字号:
// TimeClass.h: interface for the CTimeInfo class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TIMECLASS_H__D3DC3964_A034_41F9_9105_29ACD24069CC__INCLUDED_)
#define AFX_TIMECLASS_H__D3DC3964_A034_41F9_9105_29ACD24069CC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxmt.h> //互持量头文件
class CTimeInfo
{
public:
CTimeInfo();
void AdjustTime(unsigned char *ReceiveData);
ULONG GetUnixTime();
UINT GetSecond();
UINT GetMinute();
UINT GetHour();
UINT GetDayCount();
UINT GetDay();
UINT GetMonth();
UINT GetYear();
void SetTime();
private:
static UINT nNowHour,nNowMinute,nNowSecond;
static UINT nNowYear,nNowMonth,nNowDay,nNowDayCount;
static ULONG nUnixTime;
};
#endif // !defined(AFX_TIMECLASS_H__D3DC3964_A034_41F9_9105_29ACD24069CC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -