Specification for daylight savings start rules in US. More...
#include <local_timezone_defs.hpp>
Public Types | |
typedef date_type::day_of_week_type | day_of_week_type |
typedef date_type::month_type | month_type |
typedef date_type::year_type | year_type |
typedef date_time::nth_kday_of_month < date_type > | start_rule_functor |
typedef date_time::first_kday_of_month < date_type > | end_rule_functor |
typedef date_time::first_kday_of_month < date_type > | start_rule_functor_pre2007 |
typedef date_time::last_kday_of_month < date_type > | end_rule_functor_pre2007 |
Static Public Member Functions | |
static day_of_week_type | start_day (year_type) |
static month_type | start_month (year_type y) |
static day_of_week_type | end_day (year_type) |
static month_type | end_month (year_type y) |
static date_type | local_dst_start_day (year_type year) |
static date_type | local_dst_end_day (year_type year) |
static int | dst_start_offset_minutes () |
static int | dst_end_offset_minutes () |
static int | dst_shift_length_minutes () |
Specification for daylight savings start rules in US.
This class is used to configure dst_calc_engine template typically as follows:
This generates a type suitable for the calculation of dst transitions for the United States. Of course other templates can be used for other locales.
typedef date_type::day_of_week_type boost::date_time::us_dst_trait< date_type >::day_of_week_type |
typedef date_time::first_kday_of_month<date_type> boost::date_time::us_dst_trait< date_type >::end_rule_functor |
typedef date_time::last_kday_of_month<date_type> boost::date_time::us_dst_trait< date_type >::end_rule_functor_pre2007 |
typedef date_type::month_type boost::date_time::us_dst_trait< date_type >::month_type |
typedef date_time::nth_kday_of_month<date_type> boost::date_time::us_dst_trait< date_type >::start_rule_functor |
typedef date_time::first_kday_of_month<date_type> boost::date_time::us_dst_trait< date_type >::start_rule_functor_pre2007 |
typedef date_type::year_type boost::date_time::us_dst_trait< date_type >::year_type |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References boost::date_time::Sunday.
Referenced by boost::date_time::us_dst_trait< date_type >::local_dst_end_day().
|
inlinestatic |
References boost::date_time::Nov, and boost::date_time::Oct.
Referenced by boost::date_time::us_dst_trait< date_type >::local_dst_end_day().
|
inlinestatic |
|
inlinestatic |
References boost::date_time::nth_kday_of_month< date_type >::get_date(), boost::date_time::first_kday_of_month< date_type >::get_date(), boost::date_time::nth_kday_of_month< date_type >::second, boost::date_time::us_dst_trait< date_type >::start_day(), and boost::date_time::us_dst_trait< date_type >::start_month().
|
inlinestatic |
References boost::date_time::Sunday.
Referenced by boost::date_time::us_dst_trait< date_type >::local_dst_start_day().
|
inlinestatic |
References boost::date_time::Apr, and boost::date_time::Mar.
Referenced by boost::date_time::us_dst_trait< date_type >::local_dst_start_day().