Provides calculation to find next nth month given a date. More...
#include <adjust_functors.hpp>
Public Types | |
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 |
Public Member Functions | |
month_functor (int f) | |
duration_type | get_offset (const date_type &d) const |
duration_type | get_neg_offset (const date_type &d) const |
Returns a negative duration_type. More... | |
Provides calculation to find next nth month given a date.
This adjustment function provides the logic for 'month-based' advancement on a ymd based calendar. The policy it uses to handle the non existant end of month days is to back up to the last day of the month. Also, if the starting date is the last day of a month, this functor will attempt to adjust to the end of the month.
typedef date_type::calendar_type boost::date_time::month_functor< date_type >::cal_type |
typedef cal_type::day_type boost::date_time::month_functor< date_type >::day_type |
typedef date_type::duration_type boost::date_time::month_functor< date_type >::duration_type |
typedef cal_type::ymd_type boost::date_time::month_functor< date_type >::ymd_type |
|
inline |
|
inline |
Returns a negative duration_type.
References boost::date_time::year.
|
inline |
References boost::date_time::year.