My Project
|
#include <item_timefunc.h>
Public Member Functions | |
void | set_date (MYSQL_TIME *ltime) |
void | set_time (MYSQL_TIME *ltime, uint8 dec_arg) |
void | set_datetime (MYSQL_TIME *ltime, uint8 dec_arg) |
void | set_date (struct timeval tv, Time_zone *tz) |
void | set_time (struct timeval tv, uint8 dec_arg, Time_zone *tz) |
void | set_datetime (struct timeval tv, uint8 dec_arg, Time_zone *tz) |
bool | eq (const MYSQL_TIME_cache &tm) const |
uint8 | decimals () const |
longlong | val_packed () const |
bool | get_date (MYSQL_TIME *ltime, uint fuzzyflags) const |
bool | get_time (MYSQL_TIME *ltime) const |
MYSQL_TIME * | get_TIME_ptr () |
String * | val_str (String *str) |
const char * | cptr () |
Cache for MYSQL_TIME value with various representations.
const char * MYSQL_TIME_cache::cptr | ( | ) |
Return C string representation.
uint8 MYSQL_TIME_cache::decimals | ( | ) | const [inline] |
Return number of decimal digits.
bool MYSQL_TIME_cache::eq | ( | const MYSQL_TIME_cache & | tm | ) | const [inline] |
Test if cached value is equal to another MYSQL_TIME_cache value.
bool MYSQL_TIME_cache::get_date | ( | MYSQL_TIME * | ltime, |
uint | fuzzyflags | ||
) | const |
Store MYSQL_TIME representation into the given date/datetime variable checking date flags.
bool MYSQL_TIME_cache::get_time | ( | MYSQL_TIME * | ltime | ) | const [inline] |
Store MYSQL_TIME representation into the given time variable.
MYSQL_TIME* MYSQL_TIME_cache::get_TIME_ptr | ( | ) | [inline] |
Return pointer to MYSQL_TIME representation.
void MYSQL_TIME_cache::set_date | ( | MYSQL_TIME * | ltime | ) |
Set time and time_packed from a DATE value.
void MYSQL_TIME_cache::set_date | ( | struct timeval | tv, |
Time_zone * | tz | ||
) |
Set time and time_packed according to DATE value in "struct timeval" representation and its time zone.
void MYSQL_TIME_cache::set_datetime | ( | MYSQL_TIME * | ltime, |
uint8 | dec_arg | ||
) |
Set time and time_packed from a DATETIME value.
void MYSQL_TIME_cache::set_datetime | ( | struct timeval | tv, |
uint8 | dec_arg, | ||
Time_zone * | tz | ||
) |
Set time and time_packed according to DATETIME value in "struct timeval" representation and its time zone.
void MYSQL_TIME_cache::set_time | ( | MYSQL_TIME * | ltime, |
uint8 | dec_arg | ||
) |
Set time and time_packed from a TIME value.
void MYSQL_TIME_cache::set_time | ( | struct timeval | tv, |
uint8 | dec_arg, | ||
Time_zone * | tz | ||
) |
Set time and time_packed according to TIME value in "struct timeval" representation and its time zone.
longlong MYSQL_TIME_cache::val_packed | ( | ) | const [inline] |
Return packed representation.
String * MYSQL_TIME_cache::val_str | ( | String * | str | ) |
Store string representation into String.