MySQL  8.0.27
Source Code Documentation
Time_zone_utc Class Reference
Inheritance diagram for Time_zone_utc:
Time_zone

Public Member Functions

my_time_t TIME_to_gmt_sec (const MYSQL_TIME *t, bool *in_dst_time_gap) const override
 Converts local time in broken down MYSQL_TIME representation to my_time_t (UTC seconds since Epoch) represenation. More...
 
void gmt_sec_to_TIME (MYSQL_TIME *tmp, my_time_t t) const override
 Converts time in my_time_t representation to local time in broken down MYSQL_TIME representation. More...
 
const Stringget_name () const override
 Because of constness of String returned by get_name() time zone name have to be already zeroended to be able to use String::ptr() instead of c_ptr(). More...
 
tz_type get_timezone_type () const override
 Returns the timezone type set. More...
 
long get_timezone_offset () const override
 Returns the offset set for a Timezone offset. More...
 
- Public Member Functions inherited from Time_zone
void gmt_sec_to_TIME (MYSQL_TIME *tmp, struct timeval tv) const
 Comverts "struct timeval" to local time in broken down MYSQL_TIME represendation. More...
 
virtual ~Time_zone ()=default
 We need this only for surpressing warnings, objects of this type are allocated on MEM_ROOT and should not require destruction. More...
 

Additional Inherited Members

- Public Types inherited from Time_zone
enum  tz_type { TZ_DB = 1 , TZ_OFFSET = 2 , TZ_SYSTEM = 3 , TZ_UTC = 4 }
 Enum to identify the type of the timezone. More...
 
- Static Protected Member Functions inherited from Time_zone
static void adjust_leap_second (MYSQL_TIME *t)
 Convert leap seconds into non-leap. More...
 

Member Function Documentation

◆ get_name()

const String * Time_zone_utc::get_name ( ) const
overridevirtual

Because of constness of String returned by get_name() time zone name have to be already zeroended to be able to use String::ptr() instead of c_ptr().

Implements Time_zone.

◆ get_timezone_offset()

long Time_zone_utc::get_timezone_offset ( ) const
inlineoverridevirtual

Returns the offset set for a Timezone offset.

This function has to be invoked ONLY when TZ_OFFSET is set.

Implements Time_zone.

◆ get_timezone_type()

tz_type Time_zone_utc::get_timezone_type ( ) const
inlineoverridevirtual

Returns the timezone type set.

Implements Time_zone.

◆ gmt_sec_to_TIME()

void Time_zone_utc::gmt_sec_to_TIME ( MYSQL_TIME tmp,
my_time_t  t 
) const
overridevirtual

Converts time in my_time_t representation to local time in broken down MYSQL_TIME representation.

Implements Time_zone.

◆ TIME_to_gmt_sec()

my_time_t Time_zone_utc::TIME_to_gmt_sec ( const MYSQL_TIME t,
bool *  in_dst_time_gap 
) const
overridevirtual

Converts local time in broken down MYSQL_TIME representation to my_time_t (UTC seconds since Epoch) represenation.

Returns 0 in case of error. Sets in_dst_time_gap to true if date provided falls into spring time-gap (or lefts it untouched otherwise).

Implements Time_zone.


The documentation for this class was generated from the following file: