Definition in file timestamp.h.
Go to the source code of this file.
Classes | |
| struct | s_datetime |
Defines | |
| #define | MAXYEAR 2969 |
| #define | MINYEAR 1970 |
| #define | NORMALRES |
| #define | TS_INVALID ((int64)-1) |
| #define | TS_MAX (32482080000LL) |
| #define | TS_NEVER ((int64)(((unsigned int64)-1)>>1)) |
| #define | TS_RESOLUTION (1) |
| #define | TS_SCALE (0) |
| #define | TS_SECOND ((int64)1) |
| #define | TS_ZERO ((int64)0) |
Typedefs | |
| typedef s_datetime | DATETIME |
| the s_datetime structure | |
| typedef int64 | TIMESTAMP |
Functions | |
| int | convert_from_timestamp (TIMESTAMP ts, char *buffer, int size) |
| Convert from a timestamp to a string. | |
| TIMESTAMP | convert_to_timestamp (char *value) |
| Convert from a string to a timestamp. | |
| int | local_datetime (TIMESTAMP ts, DATETIME *dt) |
| Converts a GMT timestamp to local datetime struct Adjusts to TZ if possible. | |
| TIMESTAMP | mkdatetime (DATETIME *dt) |
| Convert a datetime struct into a GMT timestamp. | |
| int | strdatetime (DATETIME *t, char *buffer, int size) |
| Convert a datetime struct to a string. | |
| char * | timestamp_current_timezone (void) |
| Read the current timezone specification. | |
| char * | timestamp_set_tz (char *tz_name) |
| Establish the default timezone for time conversion. | |
| int | timestamp_test (void) |
| Test the daylight saving time calculations. | |
| double | timestamp_to_days (TIMESTAMP t) |
| double | timestamp_to_hours (TIMESTAMP t) |
| double | timestamp_to_minutes (TIMESTAMP t) |
| double | timestamp_to_seconds (TIMESTAMP t) |