Class template last_kday_of_month
boost::date_time::last_kday_of_month — Calculate something like Last Sunday of January.
Synopsis
template<typename date_type>
class last_kday_of_month :
public boost::date_time::year_based_generator< date_type >
{
public:
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;
last_kday_of_month(day_of_week_type, month_type);
virtual date_type get_date(year_type) const;
month_type month() const;
day_of_week_type day_of_week() const;
virtual std::string to_string() const;
};
Description
Полезный генератор функтор для поиска праздников и экономии дневного света Получите последний день месяца, а затем рассчитайте разницу до последнего предыдущего дня.
last_kday_of_month
public
construct/copy/destruct
Last_kday_of_month month_type m;