Boost.Locale
|
This class represents a pair of period_type and the integer values that describes its amount. For example 3 days or 4 years. More...
#include <boost/locale/date_time.hpp>
Public Member Functions | |
date_time_period | operator+ () const |
date_time_period | operator- () const |
date_time_period (period::period_type f=period::period_type(), int v=1) | |
Public Attributes | |
period::period_type | type |
The type of period, i.e. era, year, day etc. | |
int | value |
This class represents a pair of period_type and the integer values that describes its amount. For example 3 days or 4 years.
Usually obtained as product of period_type and integer or my calling a representative functions For example day()*3 == date_time_period(day(),3) == day(3)
|
inline |
Constructor that creates date_time_period from period_type f and a value v – default 1.
|
inline |
Operator + returns copy of itself
|
inline |
Operator -, switches the sign of period
int boost::locale::date_time_period::value |
The value the actual number of periods