...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::date_time::dst_day_calc_rule — Defines base interface for calculating start and end date of daylight savings.
// In header: <boost/date_time/dst_transition_generators.hpp> template<typename date_type> class dst_day_calc_rule { public: // types typedef date_type::year_type year_type; // construct/copy/destruct ~dst_day_calc_rule(); // public member functions virtual date_type start_day(year_type) const = 0; virtual std::string start_rule_as_string() const = 0; virtual date_type end_day(year_type) const = 0; virtual std::string end_rule_as_string() const = 0; };