Class template years_duration
boost::date_time::years_duration — additional duration type that represents a logical year
Synopsis
template<typename base_config>
class years_duration {
public:
();
();
() ;
() ;
() ;
() ;
() ;
() ;
();
() ;
();
() ;
();
() ;
();
() ;
() ;
};
Description
A logical year enables things like: "date(2002,Mar,2) + years(2) ->
2004-Mar-2". If the date is a last day-of-the-month, the result will also be a last-day-of-the-month (ie date(2001-Feb-28) + years(3) -> 2004-Feb-29).
years_duration public member functions
( num);
( sv);
() ;
-
( d) ;
returns a negative duration
( d) ;
( rhs) ;
( rhs) ;
( rhs) ;
( rhs);
( rhs) ;
( rhs);
( rhs) ;
( rhs);
( rhs) ;
( rhs);
( m) ;
( m) ;