![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::local_adjustor — Template that simplifies the creation of local time calculator.
// In header: <boost/date_time/local_time_adjustor.hpp> template<typename time_type, utc_offset, typename dst_rule> class local_adjustor { public: // types typedef ; typedef ; typedef static_local_time_adjustor< dst_rule, utc_adjustment< ; // public static functions (const ); (const , = ); };
Use this template to create the timezone to utc convertors as required.
This class will also work for other regions that don't use dst and have a utc offset which is an integral number of hours.
Template Parameters -time_type – Time class to use -utc_offset – Number hours local time is adjust from utc -use_dst – true (default) if region uses dst, false otherwise For example:
//eastern timezone is utc-5