Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template month_functor

boost::date_time::month_functor — Provides calculation to find next nth month given a date.

Synopsis

// In header: <boost/date_time/adjust_functors.hpp>

template<typename date_type> 
class month_functor {
public:
  // types
  typedef  ;
  typedef  ;     
  typedef        ;     
  typedef        ;     

  // construct/copy/destruct
  (int);

  // public member functions
   (const ) ;
   (const ) ;
};

Description

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.

month_functor public construct/copy/destruct

  1. (int f);

month_functor public member functions

  1.  (const  d) ;
  2.  (const  d) ;
    Returns a negative duration_type.

PrevUpHomeNext