Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template months_duration

boost::date_time::months_duration — additional duration type that represents a logical month

Synopsis

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

template<typename base_config> 
class months_duration {
public:
  // construct/copy/destruct
  ();
  ();

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

Description

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 construct/copy/destruct

  1. ( num);
  2. ( sv);

months_duration public member functions

  1.  () ;
  2.  ( d) ;
    returns a negative duration
  3.  ( d) ;
  4.  ( rhs) ;
  5.  ( rhs) ;
  6.  ( rhs) ;
  7.  ( rhs);
  8.  ( rhs) ;
  9.  ( rhs);
  10.  ( rhs) ;
  11.  ( rhs);
  12.  ( rhs) ;
  13.  ( rhs);
  14.  ( y) ;
  15.  ( y);
  16.  ( y) ;
  17.  ( y);

PrevUpHomeNext