 |
MySQL
8.0.23
Source Code Documentation
|
Go to the documentation of this file. 1 #ifndef TZTIME_INCLUDED
2 #define TZTIME_INCLUDED
29 #ifdef HAVE_SYS_TIME_H
57 bool *in_dst_time_gap)
const = 0;
92 extern bool my_tz_init(
THD *org_thd,
const char *default_tzname,
Definition: sql_class.h:807
unsigned long second_part
microseconds
Definition: mysql_time.h:83
Definition: bootstrap.cc:68
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:164
static const int MY_TZ_TABLES_COUNT
Number of elements in table list produced by my_tz_get_table_list() (this table list contains tables ...
Definition: tztime.h:109
[] long int my_time_t
Portable time_t replacement.
case opt name
Definition: sslopt-case.h:32
void my_tz_free()
Definition: tztime.cc:1321
my_time_t use_input_time_zone(const MYSQL_TIME *input, bool *in_dst_time_gap)
virtual ~Time_zone()=default
We need this only for surpressing warnings, objects of this type are allocated on MEM_ROOT and should...
bool my_tz_init(THD *org_thd, const char *default_tzname, bool bootstrap)
Definition: tztime.cc:1153
Time_zone * my_tz_SYSTEM
Definition: tztime.cc:1004
static void adjust_leap_second(MYSQL_TIME *t)
Convert leap seconds into non-leap.
Definition: tztime.cc:1834
int64_t int64
Definition: my_inttypes.h:67
virtual const String * get_name() const =0
Because of constness of String returned by get_name() time zone name have to be already zeroended to ...
Time_zone * my_tz_UTC
Definition: tztime.cc:1003
virtual void gmt_sec_to_TIME(MYSQL_TIME *tmp, my_time_t t) const =0
Converts time in my_time_t representation to local time in broken down MYSQL_TIME representation.
my_time_t sec_since_epoch_TIME(MYSQL_TIME *t)
virtual my_time_t TIME_to_gmt_sec(const MYSQL_TIME *t, bool *in_dst_time_gap) const =0
Converts local time in broken down MYSQL_TIME representation to my_time_t (UTC seconds since Epoch) r...
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:48
Definition: mysql_time.h:81
void sec_to_TIME(MYSQL_TIME *tmp, my_time_t t, int64 offset)
Definition: tztime.cc:130
bool convert_time_zone_displacement(const Time_zone *tz, MYSQL_TIME *mt)
Converts a date/time value with time zone to the corresponding date/time value without time zone,...
Definition: tztime.cc:617
void gmt_sec_to_TIME(MYSQL_TIME *tmp, struct timeval tv) const
Comverts "struct timeval" to local time in broken down MYSQL_TIME represendation.
Definition: tztime.h:67
bool check_time_zone_convertibility(const MYSQL_TIME &mt)
Checks that this temporal value can be converted from its specified time zone (if any) to the current...
Definition: tztime.cc:588
Time_zone * my_tz_OFFSET0
Definition: tztime.cc:1002
Time_zone * my_tz_find(THD *thd, const String *name)
Get Time_zone object for specified time zone.
Definition: tztime.cc:1771