#include "my_global.h"
#include "mysql_time.h"
Ir al código fuente de este archivo.
'defines' |
#define | MY_TIME_T_MAX LONG_MAX |
#define | MY_TIME_T_MIN LONG_MIN |
#define | TIMESTAMP_MAX_YEAR 2038 |
#define | YY_PART_YEAR 70 |
#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 | MAX_DATE_STRING_REP_LENGTH 30 |
'typedefs' |
typedef long | my_time_t |
Funciones |
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 | 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) |
Variables |
C_MODE_START ulonglong | log_10_int [20] |
uchar | days_in_month [] |
Documentación de los 'defines'
#define MAX_DATE_STRING_REP_LENGTH 30 |
#define MY_TIME_T_MAX LONG_MAX |
#define MY_TIME_T_MIN LONG_MIN |
#define MYSQL_TIME_WARN_OUT_OF_RANGE 2 |
#define MYSQL_TIME_WARN_TRUNCATED 1 |
#define TIME_DATETIME_ONLY 2 |
#define TIME_FUZZY_DATE 1 |
#define TIME_INVALID_DATES (TIME_NO_ZERO_DATE*2) |
#define TIME_MAX_HOUR 838 |
#define TIME_MAX_MINUTE 59 |
#define TIME_MAX_SECOND 59 |
#define TIME_NO_ZERO_DATE (TIME_NO_ZERO_IN_DATE*2) |
#define TIME_NO_ZERO_IN_DATE (65536L*2*2*2*2*2*2*2) |
#define TIMESTAMP_MAX_VALUE INT_MAX32 |
#define TIMESTAMP_MAX_YEAR 2038 |
#define TIMESTAMP_MIN_VALUE 1 |
#define TIMESTAMP_MIN_YEAR (1900 + YY_PART_YEAR - 1) |
Documentación de los 'typedefs'
Documentación de las funciones
Documentación de las variables