boost::locale::date_time_period Struct Reference
[Date, Time, Timezone and Calendar manipulations]

This structure provides a pair period_type and amount. More...

#include <boost/locale/date_time.hpp>

List of all members.

Public Member Functions

date_time_period operator+ () const
date_time_period operator- () const
 date_time_period (period::period_type f=period::invalid, int v=1)

Public Attributes

period::period_type type
 The type of period, i.e. era, year, day etc.
int value


Detailed Description

This structure provides a pair period_type and amount.

Usually obtained as product of period_type and integer. For example day*3 == date_time_period(day,3)


Constructor & Destructor Documentation

boost::locale::date_time_period::date_time_period ( period::period_type  f = period::invalid,
int  v = 1 
) [inline]

Constructor that creates date_time_period from period_type f and a value v -- default 1.


Member Function Documentation

date_time_period boost::locale::date_time_period::operator+ (  )  const [inline]

Operator + returns copy of itself

date_time_period boost::locale::date_time_period::operator- (  )  const [inline]

Operator -, switches the sign of period


Member Data Documentation

The value the actual number of periods


The documentation for this struct was generated from the following file:

Generated on Thu Mar 18 23:02:03 2010 for Boost.Locale by doxygen 1.5.6