![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::years_duration — additional duration type that represents a logical year
// In header: <boost/date_time/date_duration_types.hpp> template<typename base_config> class years_duration { public: // public member functions (); (); BOOST_CXX14_CONSTEXPR () ; BOOST_CXX14_CONSTEXPR (const ) ; BOOST_CXX14_CONSTEXPR (const ) ; BOOST_CXX14_CONSTEXPR bool (const years_type &) ; bool (const years_type &) ; BOOST_CXX14_CONSTEXPR years_type (const years_type &) ; BOOST_CXX14_CONSTEXPR years_type & (const years_type &); BOOST_CXX14_CONSTEXPR years_type (const years_type &) ; BOOST_CXX14_CONSTEXPR years_type & (const years_type &); BOOST_CXX14_CONSTEXPR years_type (const ) ; BOOST_CXX14_CONSTEXPR years_type & (const ); BOOST_CXX14_CONSTEXPR years_type (const ) ; BOOST_CXX14_CONSTEXPR years_type & (const ); BOOST_CXX14_CONSTEXPR months_type (const months_type &) ; BOOST_CXX14_CONSTEXPR months_type (const months_type &) ; };
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);
BOOST_CXX14_CONSTEXPR () ;
BOOST_CXX14_CONSTEXPR (const d) ;returns a negative duration
BOOST_CXX14_CONSTEXPR (const d) ;
BOOST_CXX14_CONSTEXPR bool (const years_type & rhs) ;
bool (const years_type & rhs) ;
BOOST_CXX14_CONSTEXPR years_type (const years_type & rhs) ;
BOOST_CXX14_CONSTEXPR years_type & (const years_type & rhs);
BOOST_CXX14_CONSTEXPR years_type (const years_type & rhs) ;
BOOST_CXX14_CONSTEXPR years_type & (const years_type & rhs);
BOOST_CXX14_CONSTEXPR years_type (const rhs) ;
BOOST_CXX14_CONSTEXPR years_type & (const rhs);
BOOST_CXX14_CONSTEXPR years_type (const rhs) ;
BOOST_CXX14_CONSTEXPR years_type & (const rhs);
BOOST_CXX14_CONSTEXPR months_type (const months_type & m) ;
BOOST_CXX14_CONSTEXPR months_type (const months_type & m) ;