23 #ifndef __GNC_TIMEZONE_HPP__ 24 #define __GNC_TIMEZONE_HPP__ 31 #define BOOST_ERROR_CODE_HEADER_ONLY 32 #include <boost/date_time/local_time/local_time.hpp> 39 using TZ = boost::local_time::time_zone;
40 using TZ_Ptr = boost::local_time::time_zone_ptr;
41 using TZ_Entry = std::pair<int, TZ_Ptr>;
42 using TZ_Vector = std::vector<TZ_Entry>;
43 using time_zone_names = boost::local_time::time_zone_names;
55 TZ_Ptr
get (
int year)
const noexcept;
56 void dump()
const noexcept;
57 static const unsigned int min_year;
58 static const unsigned int max_year;
60 void parse_file(
const std::string& tzname);
61 bool construct(
const std::string& tzname);
62 TZ_Vector m_zone_vector;
64 void load_windows_dynamic_tz(HKEY, time_zone_names);
65 void load_windows_classic_tz(HKEY, time_zone_names);
66 void load_windows_default_tz(
void);
70 #endif //__GCN_TIMEZONE_HPP__