odbc::Timestamp Class Reference

Inheritance diagram for odbc::Timestamp:

odbc::Date odbc::Time odbc::Date odbc::Time List of all members.

Detailed Description

An SQL 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.
Timestampoperator= (const Timestamp &t)
 Assignment operator.
Timestampoperator= (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.


Constructor & Destructor Documentation

odbc::Timestamp::Timestamp (  )  [explicit]

Constructor.

Sets the timestamp to now.

odbc::Timestamp::Timestamp ( std::time_t  t  )  [inline]

Constructor.

Sets this timestamp to the specified time_t value.

Definition at line 578 of file types.h.

odbc::Timestamp::Timestamp ( const ODBCXX_STRING &  s  )  [inline]

Constructor.

Sets this timestamp from a YYYY-MM-DD HH:MM:SS[.NNN...] format

Definition at line 586 of file types.h.

odbc::Timestamp::Timestamp (  )  [explicit]

Constructor.

Sets the timestamp to now.

odbc::Timestamp::Timestamp ( std::time_t  t  )  [inline]

Constructor.

Sets this timestamp to the specified time_t value.

Definition at line 578 of file types.h.

odbc::Timestamp::Timestamp ( const ODBCXX_STRING &  s  )  [inline]

Constructor.

Sets this timestamp from a YYYY-MM-DD HH:MM:SS[.NNN...] format

Definition at line 586 of file types.h.


Member Function Documentation

void odbc::Timestamp::parse ( const ODBCXX_STRING &  s  ) 

Set this timestamp from a YYYY-MM-DD HH:MM:SS[.NNN.

..] format

Reimplemented from odbc::Date.

void odbc::Timestamp::parse ( const ODBCXX_STRING &  s  ) 

Set this timestamp from a YYYY-MM-DD HH:MM:SS[.NNN.

..] format

Reimplemented from odbc::Date.


The documentation for this class was generated from the following files:
GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy