timestamp.h

来自「Oracle OCI 应用」· C头文件 代码 · 共 54 行

H
54
字号

/**
 * 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 + =
减小字号Ctrl + -
显示快捷键?