MySQL 5.6.14 Source Code Document
|
#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.
Definition at line 726 of file item_timefunc.h.
const char * MYSQL_TIME_cache::cptr | ( | ) |
Return C string representation.
Definition at line 1762 of file item_timefunc.cc.
|
inline |
Return number of decimal digits.
Definition at line 808 of file item_timefunc.h.
|
inline |
Test if cached value is equal to another MYSQL_TIME_cache value.
Definition at line 800 of file item_timefunc.h.
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.
Definition at line 1769 of file item_timefunc.cc.
|
inline |
Store MYSQL_TIME representation into the given time variable.
Definition at line 830 of file item_timefunc.h.
|
inline |
Return pointer to MYSQL_TIME representation.
Definition at line 838 of file item_timefunc.h.
void MYSQL_TIME_cache::set_date | ( | MYSQL_TIME * | ltime | ) |
Set time and time_packed from a DATE value.
Definition at line 1701 of file item_timefunc.cc.
Set time and time_packed according to DATE value in "struct timeval" representation and its time zone.
Definition at line 1731 of file item_timefunc.cc.
void MYSQL_TIME_cache::set_datetime | ( | MYSQL_TIME * | ltime, |
uint8 | dec_arg | ||
) |
Set time and time_packed from a DATETIME value.
Definition at line 1711 of file item_timefunc.cc.
Set time and time_packed according to DATETIME value in "struct timeval" representation and its time zone.
Definition at line 1721 of file item_timefunc.cc.
void MYSQL_TIME_cache::set_time | ( | MYSQL_TIME * | ltime, |
uint8 | dec_arg | ||
) |
Set time and time_packed from a TIME value.
Definition at line 1691 of file item_timefunc.cc.
Set time and time_packed according to TIME value in "struct timeval" representation and its time zone.
Definition at line 1743 of file item_timefunc.cc.
|
inline |
Return packed representation.
Definition at line 817 of file item_timefunc.h.
Store string representation into String.
Definition at line 1777 of file item_timefunc.cc.