📄 vdatetime.h
字号:
/*************************************************************************** vdatatime.h - description ------------------- begin : 2005-01-05 copyright : (C) 2005 by LiuZhong email : easeliu@vip.sina.com.cn ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef VSMALLTOOL_H#define VSMALLTOOL_H#include "linuxh.h"/** *@author easeliu */class DateTime{private: time_t m_DT;public: DateTime(); DateTime(const time_t DT); DateTime(const char* DT); DateTime(const struct tm* DT); DateTime(long Year,long Month,long Day); DateTime(long Hour,long Minute,long Second,long MSecond); DateTime(long Year,long Month,long Day,long Hour,long Minute,long Second); time_t AddDays(long Days); time_t AddSeconds(long Seconds); time_t DT(); long Year(); long Month(); long Day(); long Hour(); long Minute(); long Second(); long WeekDay(); long YearDay(); long Date(); long Time(); string Format(string Fmt); string StdDateTime(); string StdDate(); string StdTime(); string EurDateTime(); string EurDate(); string EurTime(); string TWDateTime(); string TWDate(); string TWTime(); string WestDateTime(); string WestDate(); string WestTime(); string LongDateTime(); string LongDate(); string ShortDateTime(); string ShortDate(); string ShortTime(); };#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -