Class template years_duration
boost::date_time::years_duration — additional duration type that represents a logical year
Synopsis
Description
Логический год позволяет делать такие вещи, как «дата (2002, Мар,2) + годы (2) -> 2004-Мар-2». Если дата является последним днем месяца, результатом будет также последний день месяца (т.е. дата (2001-Feb-28) + годы (3) -> 2004-Feb-29).
years_duration
public
construct/copy/destruct
years_duration(int_rep num);
years_duration(special_values sv);
years_duration
public member functions
int_rep номер_of_years() const;
duration_type get_neg_offset(const date_type & d) const;
возврат отрицательной продолжительности
duration_type get_offset(const date_type & d) const;
bool оператор==(const лет_type & rhs) const;
bool оператор!=(const лет_type & rhs) const;
years_type оператор+(const лет_type & rhs) const;
years_type & оператор+=(const лет_type & rhs);
years_type оператор-(const лет_type & rhs) const;
years_type & оператор-=(const лет_type & rhs);
years_type оператор*(const int_type rhs) const;
years_type & оператор*=(constint_type rhs);
years_type оператор/(const int_type rhs) const;
years_type & оператор/=(const int_type rhs);
месяцев_типа оператор+(const месяцев_type & m) const;
месяцев_типа оператор-(const месяцев_type & m) const;