MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Time_zone_db Class Reference
Inheritance diagram for Time_zone_db:
Collaboration diagram for Time_zone_db:

Public Member Functions

 Time_zone_db (TIME_ZONE_INFO *tz_info_arg, const String *tz_name_arg)
virtual my_time_t TIME_to_gmt_sec (const MYSQL_TIME *t, my_bool *in_dst_time_gap) const
virtual void gmt_sec_to_TIME (MYSQL_TIME *tmp, my_time_t t) const
virtual const Stringget_name () const
- Public Member Functions inherited from Time_zone
void gmt_sec_to_TIME (MYSQL_TIME *tmp, struct timeval tv)
virtual ~Time_zone ()

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)
- Static Protected Member Functions inherited from Time_zone
static void adjust_leap_second (MYSQL_TIME *t)

Detailed Description

Definition at line 1198 of file tztime.cc.

Member Function Documentation

const String * Time_zone_db::get_name ( ) const
virtual

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.

Definition at line 1285 of file tztime.cc.

void Time_zone_db::gmt_sec_to_TIME ( MYSQL_TIME tmp,
my_time_t  t 
) const
virtual

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

Implements Time_zone.

Definition at line 1268 of file tztime.cc.

Here is the call graph for this function:

my_time_t Time_zone_db::TIME_to_gmt_sec ( const MYSQL_TIME t,
my_bool *  in_dst_time_gap 
) const
virtual

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.

Definition at line 1252 of file tztime.cc.


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