Inheritance diagram for odbc::Timestamp:
Definition at line 546 of file types.h.
Public Member Functions | |
int | getNanos () const |
Gets the nanoseconds value of this timestamp. | |
int | getNanos () const |
Gets the nanoseconds value of this timestamp. | |
virtual std::time_t | getTime () const |
Gets the time_t value of this timestamp. | |
virtual std::time_t | getTime () const |
Gets the time_t value of this timestamp. | |
Timestamp & | operator= (const Timestamp &t) |
Assignment operator. | |
Timestamp & | operator= (const Timestamp &t) |
Assignment operator. | |
void | parse (const ODBCXX_STRING &s) |
Set this timestamp from a YYYY-MM-DD HH:MM:SS[.NNN. | |
void | parse (const ODBCXX_STRING &s) |
Set this timestamp from a YYYY-MM-DD HH:MM:SS[.NNN. | |
void | setNanos (int nanos) |
Sets the nanoseconds value of this timestamp. | |
void | setNanos (int nanos) |
Sets the nanoseconds value of this timestamp. | |
virtual void | setTime (std::time_t t) |
Sets this timestamp to the specified time_t value. | |
virtual void | setTime (std::time_t t) |
Sets this timestamp to the specified time_t value. | |
Timestamp (const Timestamp &t) | |
Copy constructor. | |
Timestamp (const ODBCXX_STRING &s) | |
Constructor. | |
Timestamp (std::time_t t) | |
Constructor. | |
Timestamp () | |
Constructor. | |
Timestamp (int year, int month, int day, int hour, int minute, int second, int nanos=0) | |
Constructor. | |
Timestamp (const Timestamp &t) | |
Copy constructor. | |
Timestamp (const ODBCXX_STRING &s) | |
Constructor. | |
Timestamp (std::time_t t) | |
Constructor. | |
Timestamp () | |
Constructor. | |
Timestamp (int year, int month, int day, int hour, int minute, int second, int nanos=0) | |
Constructor. | |
virtual ODBCXX_STRING | toString () const |
Gets the date as a string in the YYYY-MM-DD format. | |
virtual ODBCXX_STRING | toString () const |
Gets the date as a string in the YYYY-MM-DD format. | |
virtual | ~Timestamp () |
Destructor. | |
virtual | ~Timestamp () |
Destructor. |
odbc::Timestamp::Timestamp | ( | ) | [explicit] |
Constructor.
Sets the timestamp to now.
odbc::Timestamp::Timestamp | ( | std::time_t | t | ) | [inline] |
odbc::Timestamp::Timestamp | ( | const ODBCXX_STRING & | s | ) | [inline] |
odbc::Timestamp::Timestamp | ( | ) | [explicit] |
Constructor.
Sets the timestamp to now.
odbc::Timestamp::Timestamp | ( | std::time_t | t | ) | [inline] |
odbc::Timestamp::Timestamp | ( | const ODBCXX_STRING & | s | ) | [inline] |
void odbc::Timestamp::parse | ( | const ODBCXX_STRING & | s | ) |
void odbc::Timestamp::parse | ( | const ODBCXX_STRING & | s | ) |