Class template month_functor
boost::date_time::month_functor — Provides calculation to find next nth month given a date.
Synopsis
template<typename date_type>
class month_functor {
public:
typedef date_type::duration_type duration_type;
typedef date_type::calendar_type cal_type;
typedef cal_type::ymd_type ymd_type;
typedef cal_type::day_type day_type;
month_functor(int);
duration_type get_offset(const date_type &) const;
duration_type get_neg_offset(const date_type &) const;
};
Description
Эта функция настройки обеспечивает логику для «месячного» продвижения по календарю на основе ymd. Политика, которую он использует для обработки несуществующего конца месячных дней, заключается в том, чтобы вернуться к последнему дню месяца. Кроме того, если дата начала является последним днем месяца, этот функтор будет пытаться приспособиться к концу месяца.
month_functor
public
construct/copy/destruct
month_functor public member functions
duration_type get_offset(const date_type &d>const
duration_type get_neg_offset(const date_type & d) const;
Возвращает отрицательную продолжительность_type.