#include <boost/locale/time_zone.hpp>
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) |
It allows to readout all supported time zones, set default time zone and receive an information like the offset from UTC time.
| 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
| 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.
| 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
1.5.6