1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef LOCAL_TIME_DST_TRANSITION_DAY_RULES_HPP__
- #define LOCAL_TIME_DST_TRANSITION_DAY_RULES_HPP__
- #include "boost/date_time/gregorian/gregorian_types.hpp"
- #include "boost/date_time/dst_transition_generators.hpp"
- namespace boost {
- namespace local_time {
-
-
- typedef date_time::dst_day_calc_rule<gregorian::date> dst_calc_rule;
- struct partial_date_rule_spec
- {
- typedef gregorian::date date_type;
- typedef gregorian::partial_date start_rule;
- typedef gregorian::partial_date end_rule;
- };
-
-
- typedef date_time::day_calc_dst_rule<partial_date_rule_spec> partial_date_dst_rule;
- struct first_last_rule_spec
- {
- typedef gregorian::date date_type;
- typedef gregorian::first_kday_of_month start_rule;
- typedef gregorian::last_kday_of_month end_rule;
- };
-
- typedef date_time::day_calc_dst_rule<first_last_rule_spec> first_last_dst_rule;
- struct last_last_rule_spec
- {
- typedef gregorian::date date_type;
- typedef gregorian::last_kday_of_month start_rule;
- typedef gregorian::last_kday_of_month end_rule;
- };
-
- typedef date_time::day_calc_dst_rule<last_last_rule_spec> last_last_dst_rule;
- struct nth_last_rule_spec
- {
- typedef gregorian::date date_type;
- typedef gregorian::nth_kday_of_month start_rule;
- typedef gregorian::last_kday_of_month end_rule;
- };
-
- typedef date_time::day_calc_dst_rule<nth_last_rule_spec> nth_last_dst_rule;
-
- struct nth_kday_rule_spec
- {
- typedef gregorian::date date_type;
- typedef gregorian::nth_kday_of_month start_rule;
- typedef gregorian::nth_kday_of_month end_rule;
- };
-
- typedef date_time::day_calc_dst_rule<nth_kday_rule_spec> nth_kday_dst_rule;
-
- typedef date_time::day_calc_dst_rule<nth_kday_rule_spec> nth_day_of_the_week_in_month_dst_rule;
- } }
- #endif
|