#include <datetime.h>
Public Member Functions | |
| bool | operator== (dbDateTime const &dt) const |
| bool | operator!= (dbDateTime const &dt) const |
| bool | operator> (dbDateTime const &dt) const |
| bool | operator>= (dbDateTime const &dt) const |
| bool | operator< (dbDateTime const &dt) const |
| bool | operator<= (dbDateTime const &dt) const |
| int | operator- (dbDateTime const &dt) const |
| int | operator+ (dbDateTime const &dt) const |
| dbDateTime (time_t tm) | |
| dbDateTime () | |
| bool | isValid () const |
| time_t | asTime_t () const |
| void | clear () |
| dbDateTime (int year, int month, int day, int hour=0, int min=0, int sec=0) | |
| dbDateTime (int hour, int min) | |
| int | year () |
| int | month () |
| int | day () |
| int | dayOfYear () |
| int | dayOfWeek () |
| int | hour () |
| int | minute () |
| int | second () |
| char * | asString (char *buf, int buf_size, char const *format="%c") const |
| CLASS_DESCRIPTOR (dbDateTime,(KEY(stamp, INDEXED|HASHED), METHOD(year), METHOD(month), METHOD(day), METHOD(dayOfYear), METHOD(dayOfWeek), METHOD(hour), METHOD(minute), METHOD(second))) | |
| dbQueryExpression | operator== (char const *field) |
| dbQueryExpression | operator!= (char const *field) |
| dbQueryExpression | operator< (char const *field) |
| dbQueryExpression | operator<= (char const *field) |
| dbQueryExpression | operator> (char const *field) |
| dbQueryExpression | operator>= (char const *field) |
Static Public Member Functions | |
| static dbDateTime | current () |
| static dbDateTime | currentDate () |
| static dbQueryExpression | ascent (char const *field) |
| static dbQueryExpression | descent (char const *field) |
Private Attributes | |
| int4 | stamp |
Friends | |
| dbQueryExpression | between (char const *field, dbDateTime &from, dbDateTime &till) |
| dbDateTime | ( | time_t | tm | ) | [inline] |
| dbDateTime | ( | ) | [inline] |
| dbDateTime | ( | int | year, | |
| int | month, | |||
| int | day, | |||
| int | hour = 0, |
|||
| int | min = 0, |
|||
| int | sec = 0 | |||
| ) | [inline] |
| dbDateTime | ( | int | hour, | |
| int | min | |||
| ) | [inline] |
| bool operator== | ( | dbDateTime const & | dt | ) | const [inline] |
| bool operator!= | ( | dbDateTime const & | dt | ) | const [inline] |
| bool operator> | ( | dbDateTime const & | dt | ) | const [inline] |
| bool operator>= | ( | dbDateTime const & | dt | ) | const [inline] |
| bool operator< | ( | dbDateTime const & | dt | ) | const [inline] |
| bool operator<= | ( | dbDateTime const & | dt | ) | const [inline] |
| int operator- | ( | dbDateTime const & | dt | ) | const [inline] |
| int operator+ | ( | dbDateTime const & | dt | ) | const [inline] |
| static dbDateTime current | ( | ) | [inline, static] |
| bool isValid | ( | ) | const [inline] |
| time_t asTime_t | ( | ) | const [inline] |
| void clear | ( | ) | [inline] |
| int year | ( | ) | [inline] |
| int month | ( | ) | [inline] |
| int day | ( | ) | [inline] |
| int dayOfYear | ( | ) | [inline] |
| int dayOfWeek | ( | ) | [inline] |
| int hour | ( | ) | [inline] |
| int minute | ( | ) | [inline] |
| int second | ( | ) | [inline] |
| char* asString | ( | char * | buf, | |
| int | buf_size, | |||
| char const * | format = "%c" | |||
| ) | const [inline] |
| static dbDateTime currentDate | ( | ) | [inline, static] |
| CLASS_DESCRIPTOR | ( | dbDateTime | , | |
| (KEY(stamp, INDEXED|HASHED), METHOD(year), METHOD(month), METHOD(day), METHOD(dayOfYear), METHOD(dayOfWeek), METHOD(hour), METHOD(minute), METHOD(second)) | ||||
| ) |
| dbQueryExpression operator== | ( | char const * | field | ) | [inline] |
| dbQueryExpression operator!= | ( | char const * | field | ) | [inline] |
| dbQueryExpression operator< | ( | char const * | field | ) | [inline] |
| dbQueryExpression operator<= | ( | char const * | field | ) | [inline] |
| dbQueryExpression operator> | ( | char const * | field | ) | [inline] |
| dbQueryExpression operator>= | ( | char const * | field | ) | [inline] |
| static dbQueryExpression ascent | ( | char const * | field | ) | [inline, static] |
| static dbQueryExpression descent | ( | char const * | field | ) | [inline, static] |
| dbQueryExpression between | ( | char const * | field, | |
| dbDateTime & | from, | |||
| dbDateTime & | till | |||
| ) | [friend] |