boost::locale::period Namespace Reference
[Date, Time, Timezone and Calendar manipulations]

Namespace that contains a enum that defines various periods like years, days. More...


Enumerations

enum  period_type {
  invalid, era, year, extended_year,
  month, day, day_of_year, day_of_week,
  day_of_week_in_month, day_of_week_local, hour, hour_12,
  am_pm, minute, second, week_of_year,
  week_of_month
}

Variables

static const date_time_period january (month, 0)
static const date_time_period february (month, 1)
static const date_time_period march (month, 2)
static const date_time_period april (month, 3)
static const date_time_period may (month, 4)
static const date_time_period june (month, 5)
static const date_time_period july (month, 6)
static const date_time_period august (month, 7)
static const date_time_period september (month, 8)
static const date_time_period october (month, 9)
static const date_time_period november (month, 10)
static const date_time_period december (month, 11)
static const date_time_period sunday (day_of_week, 1)
static const date_time_period monday (day_of_week, 2)
static const date_time_period tuesday (day_of_week, 3)
static const date_time_period wednesday (day_of_week, 4)
static const date_time_period thursday (day_of_week, 5)
static const date_time_period friday (day_of_week, 6)
static const date_time_period saturday (day_of_week, 7)
static const date_time_period am (am_pm, 0)
static const date_time_period pm (am_pm, 1)


Detailed Description

Namespace that contains a enum that defines various periods like years, days.

Enumeration Type Documentation

This enum provides the list of various time periods that can be used for manipulation over date and time Operators like +, - * defined for these period allowing to perform easy calculations over them

Enumerator:
invalid  Special invalid value, should not be used directs.
era  Era i.e. AC, BC in Gregorian and Julian calendar, range [0,1].
year  Year, it is calendar specific.
extended_year  Extended year for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1.
month  The month of year, calendar specific, in Gregorian [0..11].
day  The day of month, calendar specific, in Gregorian [1..31].
day_of_year  The number of day in year, starting from 1.
day_of_week  Day of week, starting from Sunday, [1..7].
day_of_week_in_month  Original number of the day of the week in month.
day_of_week_local  Local day of week, for example in France Monday is 1, in US Sunday is 1, [1..7].
hour  24 clock hour [0..23]
hour_12  12 clock hour [0..11]
am_pm  am or pm marker, [0..1]
minute  minute [0..59]
second  second [0..59]
week_of_year  The week number in the year.
week_of_month  The week number withing current month.


Variable Documentation

const date_time_period boost::locale::period::am(am_pm, 0) [static]

Predefined constant for AM (Ante Meridiem)

Predefined constant for April

Predefined constant for August

Predefined constant for December

Predefined constant for February

const date_time_period boost::locale::period::friday(day_of_week, 6) [static]

Predefined constant for Friday

Predefined constant for January

Predefined constant for July

Predefined constant for June

Predefined constant for March

const date_time_period boost::locale::period::may(month, 4) [static]

Predefined constant for May

const date_time_period boost::locale::period::monday(day_of_week, 2) [static]

Predefined constant for Monday

Predefined constant for November

Predefined constant for October

const date_time_period boost::locale::period::pm(am_pm, 1) [static]

Predefined constant for PM (Post Meridiem)

const date_time_period boost::locale::period::saturday(day_of_week, 7) [static]

Predefined constant for Saturday

Predefined constant for September

const date_time_period boost::locale::period::sunday(day_of_week, 1) [static]

Predefined constant for Sunday

const date_time_period boost::locale::period::thursday(day_of_week, 5) [static]

Predefined constant for Thursday

const date_time_period boost::locale::period::tuesday(day_of_week, 3) [static]

Predefined constant for Tuesday

const date_time_period boost::locale::period::wednesday(day_of_week, 4) [static]

Predefined constant for Wednesday


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