#include <DateHandler.h>
Definition at line 7 of file DateHandler.h.
◆ DateHandler() [1/2]
DateHandler::DateHandler |
( |
oracle::occi::Environment * |
env, |
|
|
oracle::occi::Connection * |
conn |
|
) |
| |
◆ ~DateHandler()
DateHandler::~DateHandler |
( |
| ) |
|
◆ DateHandler() [2/2]
DateHandler::DateHandler |
( |
| ) |
|
|
delete |
◆ dateToTm()
Tm DateHandler::dateToTm |
( |
oracle::occi::Date & |
date | ) |
const |
◆ getCurrentDate()
oracle::occi::Date DateHandler::getCurrentDate |
( |
| ) |
|
|
inline |
Get the current system date
Definition at line 20 of file DateHandler.h.
References m_env.
20 {
return oracle::occi::Date(oracle::occi::Date::getSystemDate(
m_env)); }
oracle::occi::Environment * m_env
◆ getNegInfDate()
oracle::occi::Date DateHandler::getNegInfDate |
( |
| ) |
const |
|
inline |
◆ getNegInfTm()
Tm DateHandler::getNegInfTm |
( |
| ) |
const |
|
inline |
◆ getPlusInfDate()
oracle::occi::Date DateHandler::getPlusInfDate |
( |
| ) |
const |
|
inline |
◆ getPlusInfTm()
Tm DateHandler::getPlusInfTm |
( |
| ) |
const |
|
inline |
◆ maxDate()
oracle::occi::Date DateHandler::maxDate |
( |
| ) |
|
|
inline |
The maximum oracle Date
Definition at line 30 of file DateHandler.h.
References m_env.
30 {
return oracle::occi::Date(
m_env, 9999, 12, 31, 23, 59, 59); }
oracle::occi::Environment * m_env
◆ minDate()
oracle::occi::Date DateHandler::minDate |
( |
| ) |
|
|
inline |
The minimum oracle Date
Definition at line 25 of file DateHandler.h.
References m_env.
25 {
return oracle::occi::Date(
m_env, 1970, 1, 1, 0, 0, 0); }
oracle::occi::Environment * m_env
◆ tmToDate()
Date DateHandler::tmToDate |
( |
const Tm & |
inTm | ) |
const |
Translate a Tm object to a oracle Date object
Definition at line 19 of file DateHandler.cc.
References Tm::c_tm(), and Tm::isNull().
23 struct tm ctm = inTm.
c_tm();
24 return Date(
m_env, ctm.tm_year + 1900, ctm.tm_mon + 1, ctm.tm_mday, ctm.tm_hour, ctm.tm_min, ctm.tm_sec);
oracle::occi::Environment * m_env
◆ m_conn
oracle::occi::Connection* DateHandler::m_conn |
|
private |
◆ m_env
oracle::occi::Environment* DateHandler::m_env |
|
private |
◆ NEG_INF
◆ NEG_INF_DATE
oracle::occi::Date DateHandler::NEG_INF_DATE |
|
private |
◆ PLUS_INF
◆ PLUS_INF_DATE
oracle::occi::Date DateHandler::PLUS_INF_DATE |
|
private |