📄 time.h
字号:
/*
Copyright 2006 - 2008, All Rights Reserved.
利用这个类获取系统时间
作者 - 张鲁夺(zhangluduo)
MSN - zhangluduo@msn.com
QQ群 - 34064264
为所有爱我的人和我爱的人努力!
*/
#ifndef _TIME_H
#define _TIME_H
class Time
{
public:
Time();
virtual ~Time();
private:
typedef struct _TIME
{
int nYear; // 年
int nMonth; // 月
int nDay; // 日
int nHour; // 时
int nMinute; // 分
int nSecond; // 秒
int nMillisecond; // 毫秒
int nWeek; // 星期
} TIME, *PTIME;
TIME m_TIME;
public:
void Update ( ); // 更新时间
int GetYear ( ); // 年
int GetMonth ( ); // 月
int GetDay ( ); // 日
int GetHour ( ); // 时
int GetMinute ( ); // 分
int GetSecond ( ); // 秒
int GetMillisecond ( ); // 毫秒
int GetWeek ( ); // 星期
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -