odbc::Timestamp Class Reference

An SQL TIMESTAMP. More...

#include <types.h>

Inheritance diagram for odbc::Timestamp:

odbc::Date odbc::Time

List of all members.

Public Member Functions


Detailed Description

An SQL TIMESTAMP.

Constructor & Destructor Documentation

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

Constructor.

Sets the timestamp to now.

odbc::Timestamp::Timestamp ( std::time_t  t  ) 

Constructor.

Sets this timestamp to the specified time_t value.

odbc::Timestamp::Timestamp ( const std::string &  s  ) 

Constructor.

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


Member Function Documentation

void odbc::Timestamp::parse ( const std::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 file:
Go back to the libodbc++ homepage