|
Eneboo - Documentación para desarrolladores
|
#include <my_time.h>#include <m_string.h>#include <m_ctype.h>#include <my_pthread.h>'defines' | |
| #define | MAX_DATE_PARTS 8 |
Funciones | |
| enum enum_mysql_timestamp_type | str_to_datetime (const char *str, uint length, MYSQL_TIME *l_time, uint flags, int *was_cut) |
| bool | str_to_time (const char *str, uint length, MYSQL_TIME *l_time, int *was_cut) |
| void | init_time (void) |
| long | calc_daynr (uint year, uint month, uint day) |
| my_time_t | my_system_gmt_sec (const MYSQL_TIME *t, long *my_timezone, 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 | |
| ulonglong | log_10_int [20] |
| uchar | days_in_month [] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0} |
| #define MAX_DATE_PARTS 8 |
| void init_time | ( | void | ) |
| int my_date_to_str | ( | const MYSQL_TIME * | l_time, |
| char * | to | ||
| ) |
| int my_datetime_to_str | ( | const MYSQL_TIME * | l_time, |
| char * | to | ||
| ) |
| my_time_t my_system_gmt_sec | ( | const MYSQL_TIME * | t, |
| long * | my_timezone, | ||
| bool * | in_dst_time_gap | ||
| ) |
| int my_TIME_to_str | ( | const MYSQL_TIME * | l_time, |
| char * | to | ||
| ) |
| int my_time_to_str | ( | const MYSQL_TIME * | l_time, |
| char * | to | ||
| ) |
| void set_zero_time | ( | MYSQL_TIME * | tm, |
| enum enum_mysql_timestamp_type | time_type | ||
| ) |
| enum enum_mysql_timestamp_type str_to_datetime | ( | const char * | str, |
| uint | length, | ||
| MYSQL_TIME * | l_time, | ||
| uint | flags, | ||
| int * | was_cut | ||
| ) |
| bool str_to_time | ( | const char * | str, |
| uint | length, | ||
| MYSQL_TIME * | l_time, | ||
| int * | was_cut | ||
| ) |
| uchar days_in_month[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0} |
| ulonglong log_10_int[20] |
{
1, 10, 100, 1000, 10000UL, 100000UL, 1000000UL, 10000000UL,
ULL(100000000), ULL(1000000000), ULL(10000000000), ULL(100000000000),
ULL(1000000000000), ULL(10000000000000), ULL(100000000000000),
ULL(1000000000000000), ULL(10000000000000000), ULL(100000000000000000),
ULL(1000000000000000000), ULL(10000000000000000000)
}
1.7.4