#include <datetime.h>
Inheritance diagram for mysqlpp::mysql_date:
Public Methods | |
std::ostream & | out_stream (std::ostream &os) const |
Insert the date into a stream. | |
cchar * | convert (cchar *) |
Parse a MySQL date string into this object. | |
Public Attributes | |
short int | year |
the year | |
tiny_int | month |
the month, 1-12 | |
tiny_int | day |
the day, 1-31 | |
Protected Methods | |
short int | compare (const mysql_date *other) const |
Compare this date to another. |
|
Compare this date to another. Returns < 0 if this date is before the other, 0 of they are equal, and > 0 if this date is after the other. This method is protected because it is merely the engine used by the various operators in DTbase. |
|
Insert the date into a stream. The format is YYYY-MM-DD, zero-padded.
Reimplemented in mysqlpp::DateTime. |
|
the year No surprises; the year 2005 is stored as the integer 2005. |