宏定义 |
#define | MY_TIME_T_MAX LONG_MAX |
#define | MY_TIME_T_MIN LONG_MIN |
#define | TIMESTAMP_MAX_YEAR 2038 |
#define | TIMESTAMP_MIN_YEAR (1900 + YY_PART_YEAR - 1) |
#define | TIMESTAMP_MAX_VALUE INT_MAX32 |
#define | TIMESTAMP_MIN_VALUE 1 |
#define | YY_PART_YEAR 70 |
#define | TIME_FUZZY_DATE 1 |
#define | TIME_DATETIME_ONLY 2 |
#define | TIME_NO_ZERO_IN_DATE (65536L*2*2*2*2*2*2*2) |
#define | TIME_NO_ZERO_DATE (TIME_NO_ZERO_IN_DATE*2) |
#define | TIME_INVALID_DATES (TIME_NO_ZERO_DATE*2) |
#define | MYSQL_TIME_WARN_TRUNCATED 1 |
#define | MYSQL_TIME_WARN_OUT_OF_RANGE 2 |
#define | TIME_MAX_HOUR 838 |
#define | TIME_MAX_MINUTE 59 |
#define | TIME_MAX_SECOND 59 |
#define | TIME_MAX_VALUE |
#define | TIME_MAX_VALUE_SECONDS |
#define | MAX_DATE_STRING_REP_LENGTH 30 |
类型定义 |
typedef long | my_time_t |
枚举 |
enum | interval_type {
INTERVAL_YEAR,
INTERVAL_QUARTER,
INTERVAL_MONTH,
INTERVAL_WEEK,
INTERVAL_DAY,
INTERVAL_HOUR,
INTERVAL_MINUTE,
INTERVAL_SECOND,
INTERVAL_MICROSECOND,
INTERVAL_YEAR_MONTH,
INTERVAL_DAY_HOUR,
INTERVAL_DAY_MINUTE,
INTERVAL_DAY_SECOND,
INTERVAL_HOUR_MINUTE,
INTERVAL_HOUR_SECOND,
INTERVAL_MINUTE_SECOND,
INTERVAL_DAY_MICROSECOND,
INTERVAL_HOUR_MICROSECOND,
INTERVAL_MINUTE_MICROSECOND,
INTERVAL_SECOND_MICROSECOND,
INTERVAL_LAST
} |
函数 |
my_bool | check_date (const MYSQL_TIME *ltime, my_bool not_zero_date, ulong flags, int *was_cut) |
enum enum_mysql_timestamp_type | str_to_datetime (const char *str, uint length, MYSQL_TIME *l_time, uint flags, int *was_cut) |
longlong | number_to_datetime (longlong nr, MYSQL_TIME *time_res, uint flags, int *was_cut) |
ulonglong | TIME_to_ulonglong_datetime (const MYSQL_TIME *) |
ulonglong | TIME_to_ulonglong_date (const MYSQL_TIME *) |
ulonglong | TIME_to_ulonglong_time (const MYSQL_TIME *) |
ulonglong | TIME_to_ulonglong (const MYSQL_TIME *) |
my_bool | str_to_time (const char *str, uint length, MYSQL_TIME *l_time, int *warning) |
int | check_time_range (struct st_mysql_time *, int *warning) |
long | calc_daynr (uint year, uint month, uint day) |
uint | calc_days_in_year (uint year) |
uint | year_2000_handling (uint year) |
void | my_init_time (void) |
my_time_t | my_system_gmt_sec (const MYSQL_TIME *t, long *my_timezone, my_bool *in_dst_time_gap) |
void | set_zero_time (MYSQL_TIME *tm, enum enum_mysql_timestamp_type time_type) |
int | my_time_to_str (const MYSQL_TIME *l_time, char *to) |
int | my_date_to_str (const MYSQL_TIME *l_time, char *to) |
int | my_datetime_to_str (const MYSQL_TIME *l_time, char *to) |
int | my_TIME_to_str (const MYSQL_TIME *l_time, char *to) |
变量 |
C_MODE_START ulonglong | log_10_int [20] |
uchar | days_in_month [] |