CppCMS
|
Namespace that contains various types for manipulation with dates. More...
Namespaces | |
marks | |
This namespace holds a enum of various period types like era, year, month, etc.. | |
Classes | |
class | period_type |
This class holds a type that represents certain period of time like year, hour, second and so on. More... | |
Namespace that contains various types for manipulation with dates.
|
inline |
|
inline |
Get period_type for: am or pm marker [0..1]
|
inline |
Get date_time_period for: am or pm marker [0..1]
|
inline |
Extract from date_time numerical value of am or pm marker [0..1]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in am or pm markers
References booster::locale::date_time_duration::get().
|
inline |
|
inline |
|
inline |
Get period_type for: The day of month, calendar specific, in Gregorian [1..31]
|
inline |
Get date_time_period for: The day of month, calendar specific, in Gregorian [1..31]
|
inline |
Extract from date_time numerical value of The day of month, calendar specific, in Gregorian [1..31]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in days of month
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: Day of week, Sunday=1, Monday=2,..., Saturday=7.
Note that updating this value respects local day of week, so for example, If first day of week is Monday and the current day is Tuesday then setting the value to Sunday (1) would forward the date by 5 days forward and not backward by two days as it could be expected if the numbers were taken as is.
|
inline |
Get date_time_period for: Day of week, Sunday=1, Monday=2,..., Saturday=7.
Note that updating this value respects local day of week, so for example, If first day of week is Monday and the current day is Tuesday then setting the value to Sunday (1) would forward the date by 5 days forward and not backward by two days as it could be expected if the numbers were taken as is.
|
inline |
Extract from date_time numerical value of Day of week, Sunday=1, Monday=2,..., Saturday=7.
Note that updating this value respects local day of week, so for example, If first day of week is Monday and the current day is Tuesday then setting the value to Sunday (1) would forward the date by 5 days forward and not backward by two days as it could be expected if the numbers were taken as is.
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in days of week
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: Original number of the day of the week in month. For example 1st Sunday, 2nd Sunday, etc. in Gregorian [1..5]
|
inline |
Get date_time_period for: Original number of the day of the week in month. For example 1st Sunday, 2nd Sunday, etc. in Gregorian [1..5]
|
inline |
Extract from date_time numerical value of Original number of the day of the week in month. For example 1st Sunday, 2nd Sunday, etc. in Gregorian [1..5]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in original number of the day of the week in month
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: Local day of week, for example in France Monday is 1, in US Sunday is 1, [1..7]
|
inline |
Get date_time_period for: Local day of week, for example in France Monday is 1, in US Sunday is 1, [1..7]
|
inline |
Extract from date_time numerical value of Local day of week, for example in France Monday is 1, in US Sunday is 1, [1..7]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in local day of week
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: The number of day in year, starting from 1, in Gregorian [1..366]
|
inline |
Get date_time_period for: The number of day in year, starting from 1, in Gregorian [1..366]
|
inline |
Extract from date_time numerical value of The number of day in year, starting from 1, in Gregorian [1..366]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in days of year
References booster::locale::date_time_duration::get().
|
inline |
|
inline |
Get period_type for: Era i.e. AC, BC in Gregorian and Julian calendar, range [0,1]
|
inline |
Get date_time_period for: Era i.e. AC, BC in Gregorian and Julian calendar, range [0,1]
|
inline |
Extract from date_time numerical value of Era i.e. AC, BC in Gregorian and Julian calendar, range [0,1]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in Era i.e. AC, BC in Gregorian and Julian calendar, range [0,1]
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: Extended year for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1.
|
inline |
Get date_time_period for: Extended year for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1.
|
inline |
Extract from date_time numerical value of Extended year for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1.
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in extended years (for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1).
References booster::locale::date_time_duration::get().
|
inline |
|
inline |
Get period_type for: First day of week, constant, for example Sunday in US = 1, Monday in France = 2
|
inline |
Get date_time_period for: First day of week, constant, for example Sunday in US = 1, Monday in France = 2
|
inline |
Extract from date_time numerical value of First day of week, constant, for example Sunday in US = 1, Monday in France = 2
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in the first day of week
References booster::locale::date_time_duration::get().
|
inline |
|
inline |
Get period_type for: 24 clock hour [0..23]
|
inline |
Get date_time_period for: 24 clock hour [0..23]
|
inline |
Extract from date_time numerical value of 24 clock hour [0..23]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in hours
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: 12 clock hour [0..11]
|
inline |
Get date_time_period for: 12 clock hour [0..11]
|
inline |
Extract from date_time numerical value of 12 clock hour [0..11]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in 12 clock hours
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: special invalid value, should not be used directly
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get period_type for: minute [0..59]
|
inline |
Get date_time_period for: minute [0..59]
|
inline |
Extract from date_time numerical value of minute [0..59]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in minutes
References booster::locale::date_time_duration::get().
|
inline |
|
inline |
Get period_type for: The month of year, calendar specific, in Gregorian [0..11]
|
inline |
Get date_time_period for: The month of year, calendar specific, in Gregorian [0..11]
|
inline |
Extract from date_time numerical value of The month of year, calendar specific, in Gregorian [0..11]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in months
References booster::locale::date_time_duration::get().
|
inline |
|
inline |
date_time_period booster::locale::period::operator* | ( | period::period_type | f, |
T | v | ||
) |
date_time_period booster::locale::period::operator* | ( | T | v, |
period::period_type | f | ||
) |
Create date_time_period of type f with value v.
References operator*().
date_time_period booster::locale::period::operator* | ( | T | v, |
date_time_period | f | ||
) |
Create date_time_period of type f with value v.
References operator*(), booster::locale::date_time_period::type, and booster::locale::date_time_period::value.
date_time_period booster::locale::period::operator* | ( | date_time_period | f, |
T | v | ||
) |
Create date_time_period of type f with value v.
References operator*(), booster::locale::date_time_period::type, and booster::locale::date_time_period::value.
|
inline |
convert period_type to date_time_period(f,1)
|
inline |
convert period_type to date_time_period(f,-1)
|
inline |
|
inline |
|
inline |
Get period_type for: second [0..59]
|
inline |
Get date_time_period for: second [0..59]
|
inline |
Extract from date_time numerical value of second [0..59]
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in seconds
References booster::locale::date_time_duration::get().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get period_type for: The week number within current month
|
inline |
Get date_time_period for: The week number within current month
|
inline |
Extract from date_time numerical value of The week number within current month
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in The week number within current month
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: The week number in the year
|
inline |
Get date_time_period for: The week number in the year
|
inline |
Extract from date_time numerical value of The week number in the year
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in the week number in the year
References booster::locale::date_time_duration::get().
|
inline |
Get period_type for: Year, it is calendar specific, for example 2011 in Gregorian calendar.
|
inline |
Get date_time_period for: Year, it is calendar specific, for example 2011 in Gregorian calendar.
|
inline |
Extract from date_time numerical value of Year, it is calendar specific, for example 2011 in Gregorian calendar.
References booster::locale::date_time::get().
|
inline |
Extract from date_time_duration numerical value of duration in years
References booster::locale::date_time_duration::get().