#include <datetime.h>
Public Member Functions | |
bool | operator== (dbDateTime const &dt) |
bool | operator!= (dbDateTime const &dt) |
bool | operator> (dbDateTime const &dt) |
bool | operator>= (dbDateTime const &dt) |
bool | operator< (dbDateTime const &dt) |
bool | operator<= (dbDateTime const &dt) |
int | operator- (dbDateTime const &dt) |
int | operator+ (dbDateTime const &dt) |
dbDateTime (time_t t) | |
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_t * | asString (char_t *buf, int buf_size, char_t const *format=_T("%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_t const *field) |
dbQueryExpression | operator!= (char_t const *field) |
dbQueryExpression | operator< (char_t const *field) |
dbQueryExpression | operator<= (char_t const *field) |
dbQueryExpression | operator> (char_t const *field) |
dbQueryExpression | operator>= (char_t const *field) |
Static Public Member Functions | |
dbDateTime | current () |
dbDateTime | currentDate () |
dbQueryExpression | ascent (char_t const *field) |
dbQueryExpression | descent (char_t const *field) |
Friends | |
dbQueryExpression | between (char_t const *field, dbDateTime &from, dbDateTime &till) |
|
Date constructor from time in seconds since midnight, January 1, 1970 UTC. |
|
Constructor of invalid timestamp |
|
Construct timestamp
|
|
Construct timestamp with only time specified |
|
Generate query expresson for ordering search result by dbDateTime field in ascent order
|
|
Convert timestamp to string
|
|
Convert to number of seconds since midnight, January 1, 1970 UTC. |
|
Set invalid timestamp |
|
Get current timestmap |
|
Get current timestamp |
|
Get day 1..31 |
|
Get day of week 1..7 |
|
Get day of year 1..366 |
|
Generate query expresson for ordering search result by dbDateTime field in descent order
|
|
Get hour: 0..23 |
|
Check if timestamp is valid |
|
Get minute: 0..59 |
|
Get month: 1..12 |
|
Generate query expresson for comparing timestamps for inequality
|
|
Generate query expresson for comparing timestamps
|
|
Generate query expresson for comparing timestamps
|
|
Generate query expresson for comparing timestamps for equality
|
|
Generate query expresson for comparing timestamps
|
|
Generate query expresson for comparing timestamps
|
|
Get second: 0..59 |
|
Get year, for example 2002 |
|
Generate query expresson for checking that timestamp belongs to the specfied range
|