#include <types.h>
time_t
value. YYYY-MM-DD
format. 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
void odbc::Timestamp::parse | ( | const std::string & | s | ) |