Useful generator functor for finding holidays and daylight savings. More...
#include <date_generators.hpp>
Public Types | |
typedef date_type::calendar_type | calendar_type |
typedef calendar_type::day_of_week_type | day_of_week_type |
typedef calendar_type::month_type | month_type |
typedef calendar_type::year_type | year_type |
typedef date_type::duration_type | duration_type |
Public Member Functions | |
first_kday_of_month (day_of_week_type dow, month_type m) | |
Specify the first 'Sunday' in 'April' spec. More... | |
date_type | get_date (year_type year) const |
Return a concrete date when provided with a year specific year. More... | |
month_type | month () const |
day_of_week_type | day_of_week () const |
virtual std::string | to_string () const |
Returns string suitable for use in POSIX time zone string. More... | |
Useful generator functor for finding holidays and daylight savings.
Similar to nth_kday_of_month, but requires less paramters
typedef date_type::calendar_type boost::date_time::first_kday_of_month< date_type >::calendar_type |
typedef calendar_type::day_of_week_type boost::date_time::first_kday_of_month< date_type >::day_of_week_type |
typedef date_type::duration_type boost::date_time::first_kday_of_month< date_type >::duration_type |
typedef calendar_type::month_type boost::date_time::first_kday_of_month< date_type >::month_type |
typedef calendar_type::year_type boost::date_time::first_kday_of_month< date_type >::year_type |
|
inline |
Specify the first 'Sunday' in 'April' spec.
dow | The day of week, eg: Sunday, Monday, etc |
m | The month of the year, eg: Jan, Feb, Mar, etc |
|
inline |
|
inlinevirtual |
Return a concrete date when provided with a year specific year.
Implements boost::date_time::year_based_generator< date_type >.
Referenced by boost::date_time::us_dst_trait< date_type >::local_dst_end_day(), boost::date_time::us_dst_rules< date_type_, time_duration_type_, dst_start_offset_minutes, dst_length_minutes >::local_dst_end_day(), boost::date_time::us_dst_trait< date_type >::local_dst_start_day(), and boost::date_time::us_dst_rules< date_type_, time_duration_type_, dst_start_offset_minutes, dst_length_minutes >::local_dst_start_day().
|
inline |
|
inlinevirtual |
Returns string suitable for use in POSIX time zone string.
Returns a string formatted as "M4.1.0" ==> 1st Sunday in April.
Implements boost::date_time::year_based_generator< date_type >.