📄 gdate.h
字号:
/* Copyright (C) 2006, Mike Gashler This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. see http://www.gnu.org/copyleft/lesser.html*/#ifndef __GDATE_H__#define __GDATE_H__class GDate{protected: int m_nDay; int m_nMonth; int m_nYear; int m_nHours; int m_nMinutes; int m_nSeconds;public: GDate(); virtual ~GDate(); int Compare(GDate* pDate); void SetDate(char* szDate); static int GetMonthNumber(char* szMonth); static void GetMonthText(int nMonth, char* szBuff, int nMaxSize); void GetDateText(char* szBuff, int nMaxSize); int GetYear(); int getHours() { return m_nHours; } int getMinutes() { return m_nMinutes; } int getSeconds() { return m_nSeconds; } int getAsSecondsPast1970WithAllMonthsAsThirtyDays();};#endif // __GDATE_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -