![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::months_duration — additional duration type that represents a logical month
// In header: <boost/date_time/date_duration_types.hpp> template<typename base_config> class months_duration { public: // construct/copy/destruct (); (); // public member functions () ; () ; () ; (months_type &) ; (months_type &) ; months_type (months_type &) ; months_type & (months_type &); months_type (months_type &) ; months_type & (months_type &); months_type () ; months_type & (); months_type () ; months_type & (); months_type (years_type &) ; months_type & (years_type &); months_type (years_type &) ; months_type & (years_type &); };
A logical month enables things like: "date(2002,Mar,2) + months(2) -> 2002-May2". If the date is a last day-of-the-month, the result will also be a last-day-of-the-month.
months_duration
public member functions() ;
( d) ;returns a negative duration
( d) ;
(months_type & rhs) ;
(months_type & rhs) ;
months_type (months_type & rhs) ;
months_type & (months_type & rhs);
months_type (months_type & rhs) ;
months_type & (months_type & rhs);
months_type ( rhs) ;
months_type & ( rhs);
months_type ( rhs) ;
months_type & ( rhs);
months_type (years_type & y) ;
months_type & (years_type & y);
months_type (years_type & y) ;
months_type & (years_type & y);