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) |
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
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. |
const date_time_period boost::locale::period::am(am_pm, 0) [static] |
Predefined constant for AM (Ante Meridiem)
const date_time_period boost::locale::period::april(month, 3) [static] |
Predefined constant for April
const date_time_period boost::locale::period::august(month, 7) [static] |
Predefined constant for August
const date_time_period boost::locale::period::december(month, 11) [static] |
Predefined constant for December
const date_time_period boost::locale::period::february(month, 1) [static] |
Predefined constant for February
const date_time_period boost::locale::period::friday(day_of_week, 6) [static] |
Predefined constant for Friday
const date_time_period boost::locale::period::january(month, 0) [static] |
Predefined constant for January
const date_time_period boost::locale::period::july(month, 6) [static] |
Predefined constant for July
const date_time_period boost::locale::period::june(month, 5) [static] |
Predefined constant for June
const date_time_period boost::locale::period::march(month, 2) [static] |
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
const date_time_period boost::locale::period::november(month, 10) [static] |
Predefined constant for November
const date_time_period boost::locale::period::october(month, 9) [static] |
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
const date_time_period boost::locale::period::september(month, 8) [static] |
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