vdatetime.h
来自「otl简单包装实现类,对数据库进行操作的,简单易用.」· C头文件 代码 · 共 72 行
H
72 行
/*************************************************************************** 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 + =
减小字号Ctrl + -
显示快捷键?