Class template months_duration
boost::date_time::months_duration — additional duration type that represents a logical month
Synopsis
Description
Логический месяц позволяет такие вещи, как: «дата (2002, Mar,2) + месяцы (2) - >2002-May2». Если дата является последним днем месяца, результат также будет последним днем месяца.
months_duration
public
construct/copy/destruct
- <
months_duration(int_repnum);
>
- <
months_duration(special_valuessv);
>
months_duration
public member functions
- <
int_repnumber_of_months()const;
>
- <
duration_typeget_neg_offset(constdate_type&d)const;
>Отрицательная продолжительность
- <
duration_typeget_offset(constdate_type&d)const;
>
- <
booloperator==(constmonths_type&rhs)const;
>
- <
booloperator!=(constmonths_type&rhs)const;
>
- <
months_typeoperator+(constmonths_type&rhs)const;
>
- <
months_type&operator+=(constmonths_type&rhs);
>
- <
months_typeoperator-(constmonths_type&rhs)const;
>
- <
months_type&operator-=(constmonths_type&rhs);
>
- <
months_typeoperator*(constint_typerhs)const;
>
- <
months_type&operator*=(constint_typerhs);
>
- <
months_typeoperator/(constint_typerhs)const;
>
- <
months_type&operator/=(constint_typerhs);
>
- <
months_typeoperator+(constyears_type&y)const;
>
- <
months_type&operator+=(constyears_type&y);
>
- <
months_typeoperator-(constyears_type&y)const;
>
- <
months_type&operator-=(constyears_type&y);
>