Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class date_duration

boost::gregorian::date_duration — Durations in days for gregorian system.

Synopsis

// In header: <boost/date_time/gregorian/greg_duration.hpp>


class date_duration : public  {
public:
  // types
  typedef  ;

  // construct/copy/destruct
  ( = );
  ();
  ();

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

  // public static functions
   ();
};

Description

date_duration public construct/copy/destruct

  1. ( day_count = );
    Construct from a day count.
  2. ( sv);
    construct from special_values
  3. ( other);
    Construct from another date_duration.

date_duration public member functions

  1.  ( rhs) ;
  2.  ( rhs) ;
  3.  ( rhs) ;
  4.  ( rhs) ;
  5.  ( rhs) ;
  6.  ( rhs) ;
  7.  ( rhs);
    Subtract another duration – result is signed.
  8.  ( rhs);
    Add a duration – result is signed.
  9.  () ;
    unary- Allows for dd = -date_duration(2); -> dd == -2
  10.  ( divisor);
    Division operations on a duration with an integer.

date_duration public static functions

  1.  ();
    Returns the smallest duration – used by to calculate 'end'.

PrevUpHomeNext