boost::locale::time_zone Class Reference
[Date, Time, Timezone and Calendar manipulations]

this class represents time zone and time zone related information More...

#include <boost/locale/time_zone.hpp>

List of all members.

Public Member Functions

 time_zone ()
 time_zone (time_zone const &other)
time_zone const & operator= (time_zone const &other)
 time_zone (std::string const &id)
bool operator== (time_zone const &other) const
bool operator!= (time_zone const &other) const
std::string id () const
double offset_from_gmt (double time, bool is_local_time=false) const

Static Public Member Functions

static std::set< std::string > all_zones ()
static void global (time_zone const &zone)


Detailed Description

this class represents time zone and time zone related information

It allows to readout all supported time zones, set default time zone and receive an information like the offset from UTC time.


Constructor & Destructor Documentation

boost::locale::time_zone::time_zone (  ) 

Creates default Time Zone

boost::locale::time_zone::time_zone ( time_zone const &  other  ) 

Copies time zone

boost::locale::time_zone::time_zone ( std::string const &  id  ) 

Create time zone with id id


Member Function Documentation

static std::set<std::string> boost::locale::time_zone::all_zones (  )  [static]

Get a list of all supported time zone ids

static void boost::locale::time_zone::global ( time_zone const &  zone  )  [static]

Set default time zone

Please note, this function does not change system time zone but all time zones related to this library/ This function is not safe to use in multithreaded environment.

time_zone const& boost::locale::time_zone::operator= ( time_zone const &  other  ) 

Assigns time zone

bool boost::locale::time_zone::operator== ( time_zone const &  other  )  const

Compares two time zones by ids

bool boost::locale::time_zone::operator!= ( time_zone const &  other  )  const [inline]

Opposite of ==

std::string boost::locale::time_zone::id (  )  const

Get time zone id

double boost::locale::time_zone::offset_from_gmt ( double  time,
bool  is_local_time = false 
) const

Find an offset in seconds from GMT for time time, If time represents locale time is_locale_time should be set to true


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

Generated on Thu Mar 18 23:02:03 2010 for Boost.Locale by doxygen 1.5.6