Class template first_kday_after
boost::date_time::first_kday_after — Calculate something like "First Sunday after Jan 1,2002.
Synopsis
template<typename date_type>
class first_kday_after {
public:
typedef date_type::calendar_type calendar_type;
typedef calendar_type::day_of_week_type day_of_week_type;
typedef date_type::duration_type duration_type;
first_kday_after(day_of_week_type);
date_type get_date(date_type) const;
day_of_week_type day_of_week() const;
};
Description
Генератор дат, который берет дату и находит день после
typedef boost::date_time::first_kday_after<date> firstkdayafter;
firstkdayafter fkaf(Monday);
fkaf.get_date(date(2002,Feb,1));
first_kday_after
public
construct/copy/destruct
first_kday_after(day_of_week_type dow;
first_kday_after public member functions
date_type get_date(date_type start_day) const;
Возврат следующего заданного дня.
day_of_week_type day_of_week(>const;