#include <datetime.h>
Inheritance diagram for mysqlpp::DateTime:
Public Methods | |
DateTime () | |
Default constructor. | |
DateTime (cchar *str) | |
Initialize object from a MySQL date-and-time string. | |
DateTime (const ColData &str) | |
Initialize object from a MySQL date-and-time string. | |
DateTime (const std::string &str) | |
Initialize object from a MySQL date-and-time string. | |
short int | compare (const DateTime &other) const |
Compare this datetime to another. | |
std::ostream & | out_stream (std::ostream &os) const |
Insert the date and time into a stream. | |
cchar * | convert (cchar *) |
Parse a MySQL date and time string into this object. |
Objects of this class can be inserted into streams, and initialized from MySQL DATETIME strings.
|
Initialize object from a MySQL date-and-time string. String must be in the HH:MM:SS format. It doesn't have to be zero-padded. |
|
Initialize object from a MySQL date-and-time string.
|
|
Initialize object from a MySQL date-and-time string.
|
|
Compare this datetime to another. Returns < 0 if this datetime is before the other, 0 of they are equal, and > 0 if this datetime is after the other. This method is protected because it is merely the engine used by the various operators in DTbase. Implements mysqlpp::DTbase< DateTime >. |
|
Insert the date and time into a stream. The date and time are inserted into the stream, in that order, with a space between them.
Reimplemented from mysqlpp::mysql_date. |