23 #ifndef __GNC_TIMEZONE_HPP__ 24 #define __GNC_TIMEZONE_HPP__ 33 #define BOOST_ERROR_CODE_HEADER_ONLY 34 #include <boost/date_time/local_time/local_time.hpp> 41 using TZ = boost::local_time::time_zone;
42 using TZ_Ptr = boost::local_time::time_zone_ptr;
43 using TZ_Entry = std::pair<int, TZ_Ptr>;
44 using TZ_Vector = std::vector<TZ_Entry>;
45 using time_zone_names = boost::local_time::time_zone_names;
57 TZ_Ptr
get (
int year)
const noexcept;
58 void dump()
const noexcept;
59 static const unsigned int min_year;
60 static const unsigned int max_year;
62 void parse_file(
const std::string& tzname);
63 bool construct(
const std::string& tzname);
64 TZ_Vector m_zone_vector;
66 void load_windows_dynamic_tz(HKEY, time_zone_names);
67 void load_windows_classic_tz(HKEY, time_zone_names);
68 void load_windows_default_tz(
void);
72 #endif //__GCN_TIMEZONE_HPP__