Drizzled Public API Documentation

drizzled::Time_zone Class Reference

#include <tztime.h>

Inheritance diagram for drizzled::Time_zone:
drizzled::memory::SqlAlloc drizzled::Time_zone_system

List of all members.

Public Member Functions

virtual type::Time::epoch_t TIME_to_gmt_sec (const type::Time &t, bool *in_dst_time_gap) const =0
virtual void gmt_sec_to_TIME (type::Time &tmp, type::Time::epoch_t t) const =0
virtual const Stringget_name () const =0
virtual ~Time_zone ()

Static Public Member Functions

static void * operator new (size_t size)
static void * operator new (size_t size, Root *mem_root)
static void * operator new[] (size_t size)
static void * operator new[] (size_t size, Root *mem_root)
static void operator delete (void *, size_t)
static void operator delete (void *, Root *)
static void operator delete[] (void *, Root *)
static void operator delete[] (void *, size_t)

Detailed Description

This class represents abstract time zone and provides basic interface for type::Time <-> type::Time::epoch_t conversion. Actual time zones which are specified by DB, or via offset or use system functions are its descendants.

Definition at line 39 of file tztime.h.


Constructor & Destructor Documentation

virtual drizzled::Time_zone::~Time_zone ( ) [inline, virtual]

We need this only for surpressing warnings, objects of this type are allocated on memory::Root and should not require destruction.

Definition at line 68 of file tztime.h.


Member Function Documentation

virtual const String* drizzled::Time_zone::get_name ( ) const [pure 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().

Implemented in drizzled::Time_zone_system.

virtual void drizzled::Time_zone::gmt_sec_to_TIME ( type::Time tmp,
type::Time::epoch_t  t 
) const [pure virtual]

Converts time in type::Time::epoch_t representation to local time in broken down type::Time representation.

Implemented in drizzled::Time_zone_system.

Referenced by drizzled::Item_func_sysdate_local::store_now_in_TIME().

virtual type::Time::epoch_t drizzled::Time_zone::TIME_to_gmt_sec ( const type::Time t,
bool *  in_dst_time_gap 
) const [pure virtual]

Converts local time in broken down type::Time representation to type::Time::epoch_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).

Implemented in drizzled::Time_zone_system.


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