additional duration type that represents a logical year More...
#include <date_duration_types.hpp>
Public Member Functions | |
years_duration (int_rep num) | |
years_duration (special_values sv) | |
int_rep | number_of_years () const |
duration_type | get_neg_offset (const date_type &d) const |
returns a negative duration More... | |
duration_type | get_offset (const date_type &d) const |
bool | operator== (const years_type &rhs) const |
bool | operator!= (const years_type &rhs) const |
years_type | operator+ (const years_type &rhs) const |
years_type & | operator+= (const years_type &rhs) |
years_type | operator- (const years_type &rhs) const |
years_type & | operator-= (const years_type &rhs) |
years_type | operator* (const int_type rhs) const |
years_type & | operator*= (const int_type rhs) |
years_type | operator/ (const int_type rhs) const |
years_type & | operator/= (const int_type rhs) |
months_type | operator+ (const months_type &m) const |
months_type | operator- (const months_type &m) const |
Friends | |
date_type | operator+ (const date_type &d, const years_type &y) |
date_type | operator+= (date_type &d, const years_type &y) |
date_type | operator- (const date_type &d, const years_type &y) |
date_type | operator-= (date_type &d, const years_type &y) |
additional duration type that represents a logical year
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).
|
inline |
|
inline |
|
inline |
returns a negative duration
Referenced by boost::local_time::operator-(), boost::posix_time::operator-(), boost::posix_time::operator-=(), and boost::local_time::operator-=().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |