Public Types |
typedef uint32_t | usec_t |
typedef int64_t | epoch_t |
Public Member Functions |
| Time (uint32_t year_arg, uint32_t month_arg, uint32_t day_arg, uint32_t hour_arg, uint32_t minute_arg, uint32_t second_arg, usec_t second_part_arg, timestamp_t type_arg) |
| Time (uint32_t hour_arg, uint32_t minute_arg, uint32_t second_arg, usec_t second_part_arg, bool neg_arg) |
void | reset () |
timestamp_t | type () const |
void | convert (drizzled::String &str, timestamp_t arg=type::DRIZZLE_TIMESTAMP_DATETIME) |
void | convert (char *str, size_t &to_length, timestamp_t arg=type::DRIZZLE_TIMESTAMP_DATETIME) |
void | convert (datetime_t &datetime, timestamp_t arg=type::DRIZZLE_TIMESTAMP_DATETIME) |
void | convert (datetime_t &ret, int64_t nr, uint32_t flags) |
void | convert (datetime_t &ret, int64_t nr, uint32_t flags, type::cut_t &was_cut) |
void | convert (type::Time::epoch_t &epoch, long *my_timezone, bool *in_dst_time_gap, bool skip_timezone=false) const |
void | truncate (const timestamp_t arg) |
bool | store (const char *str, uint32_t length, int &warning, type::timestamp_t arg=DRIZZLE_TIMESTAMP_TIME) |
type::timestamp_t | store (const char *str, uint32_t length, uint32_t flags, type::cut_t &was_cut) |
type::timestamp_t | store (const char *str, uint32_t length, uint32_t flags) |
void | store (const type::Time::epoch_t &from, bool use_localtime=false) |
void | store (const type::Time::epoch_t &from, const usec_t &from_fractional_seconds, bool use_localtime=false) |
void | store (const struct tm &from) |
void | store (const struct timeval &from) |
bool | check (bool not_zero_date, uint32_t flags, type::cut_t &was_cut) const |
| Check datetime value for validity according to flags.
|
bool | isValidEpoch () const |
Public Attributes |
uint32_t | year |
uint32_t | month |
uint32_t | day |
uint32_t | hour |
uint32_t | minute |
uint32_t | second |
usec_t | second_part |
bool | neg |
timestamp_t | time_type |
bool | _is_local_time |
Static Public Attributes |
static const uint32_t | FRACTIONAL_DIGITS = 1000000 |
static const size_t | MAX_STRING_LENGTH = 32 |
Definition at line 112 of file time.h.