📄 timestamp.h
字号:
/**
* Timestamp.cpp
* 封装数据库的时间戳类型
*
* @author aizy
* @date 2005-3-30
*/
#ifndef _DB_TIMESTAMP_H_
#define _DB_TIMESTAMP_H_
#include "Date.h"
namespace db {
class Timestamp : public util::Date
{
public:
/**
* 缺省构造函数
*/
Timestamp();
/**
* 构造Timestamp对象
*
* @param timeMillis 从格林尼治标准时间1970年1月1号 00:00:00至今的毫秒数
* @see GetCurrentTimeMillis()
*/
explicit Timestamp(util::int64 timeMillis);
/**
* 构造Timestamp对象,并以当前时区初始化Timestamp对象
*
* @param year the year between 1970–2038.
* @param month the month between 1-12.
* @param date the day of the month between 1-31.
* @param hrs the hours between 0-23.
* @param min the minutes between 0-59.
* @param sec the seconds between 0-59.
* @param msec the mini seconds between 0-999.
* @deprecated
*/
Timestamp(int year, int month, int date, int hrs, int min, int sec, int msec=0);
virtual ~Timestamp();
};
}
#endif // _DB_TIMESTAMP_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -