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