Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
date_time.hpp File Reference
#include <boost/locale/config.hpp>
#include <boost/locale/hold_ptr.hpp>
#include <boost/locale/date_time_facet.hpp>
#include <boost/locale/formatting.hpp>
#include <boost/locale/time_zone.hpp>
#include <locale>
#include <vector>
#include <stdexcept>
Include dependency graph for date_time.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  boost::locale::date_time_error
 This error is thrown in case of invalid state that occurred. More...
 
struct  boost::locale::date_time_period
 This class represents a pair of period_type and the integer values that describes its amount. More...
 
class  boost::locale::date_time_period_set
 this class that represents a set of periods, More...
 
class  boost::locale::calendar
 this class provides an access to general calendar information. More...
 
class  boost::locale::date_time
 this class represents a date time and allows to perform various operation according to the locale settings. More...
 
class  boost::locale::date_time_duration
 This class represents a period: a pair of two date_time objects. More...
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::locale
 This is the main namespace that encloses all localization classes.
 
 boost::locale::period
 Namespace that contains various types for manipulation with dates.
 

Functions

period_type boost::locale::period::invalid ()
 Get period_type for: special invalid value, should not be used directly. More...
 
period_type boost::locale::period::era ()
 Get period_type for: Era i.e. More...
 
period_type boost::locale::period::year ()
 Get period_type for: Year, it is calendar specific, for example 2011 in Gregorian calendar. More...
 
period_type boost::locale::period::extended_year ()
 Get period_type for: Extended year for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1. More...
 
period_type boost::locale::period::month ()
 Get period_type for: The month of year, calendar specific, in Gregorian [0..11]. More...
 
period_type boost::locale::period::day ()
 Get period_type for: The day of month, calendar specific, in Gregorian [1..31]. More...
 
period_type boost::locale::period::day_of_year ()
 Get period_type for: The number of day in year, starting from 1, in Gregorian [1..366]. More...
 
period_type boost::locale::period::day_of_week ()
 Get period_type for: Day of week, Sunday=1, Monday=2,..., Saturday=7. More...
 
period_type boost::locale::period::day_of_week_in_month ()
 Get period_type for: Original number of the day of the week in month. More...
 
period_type boost::locale::period::day_of_week_local ()
 Get period_type for: Local day of week, for example in France Monday is 1, in US Sunday is 1, [1..7]. More...
 
period_type boost::locale::period::hour ()
 Get period_type for: 24 clock hour [0..23]. More...
 
period_type boost::locale::period::hour_12 ()
 Get period_type for: 12 clock hour [0..11]. More...
 
period_type boost::locale::period::am_pm ()
 Get period_type for: am or pm marker [0..1]. More...
 
period_type boost::locale::period::minute ()
 Get period_type for: minute [0..59]. More...
 
period_type boost::locale::period::second ()
 Get period_type for: second [0..59]. More...
 
period_type boost::locale::period::week_of_year ()
 Get period_type for: The week number in the year. More...
 
period_type boost::locale::period::week_of_month ()
 Get period_type for: The week number within current month. More...
 
period_type boost::locale::period::first_day_of_week ()
 Get period_type for: First day of week, constant, for example Sunday in US = 1, Monday in France = 2. More...
 
date_time_period boost::locale::period::era (int v)
 Get date_time_period for: Era i.e. More...
 
date_time_period boost::locale::period::year (int v)
 Get date_time_period for: Year, it is calendar specific, for example 2011 in Gregorian calendar. More...
 
date_time_period boost::locale::period::extended_year (int v)
 Get date_time_period for: Extended year for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1. More...
 
date_time_period boost::locale::period::month (int v)
 Get date_time_period for: The month of year, calendar specific, in Gregorian [0..11]. More...
 
date_time_period boost::locale::period::day (int v)
 Get date_time_period for: The day of month, calendar specific, in Gregorian [1..31]. More...
 
date_time_period boost::locale::period::day_of_year (int v)
 Get date_time_period for: The number of day in year, starting from 1, in Gregorian [1..366]. More...
 
date_time_period boost::locale::period::day_of_week (int v)
 Get date_time_period for: Day of week, Sunday=1, Monday=2,..., Saturday=7. More...
 
date_time_period boost::locale::period::day_of_week_in_month (int v)
 Get date_time_period for: Original number of the day of the week in month. More...
 
date_time_period boost::locale::period::day_of_week_local (int v)
 Get date_time_period for: Local day of week, for example in France Monday is 1, in US Sunday is 1, [1..7]. More...
 
date_time_period boost::locale::period::hour (int v)
 Get date_time_period for: 24 clock hour [0..23]. More...
 
date_time_period boost::locale::period::hour_12 (int v)
 Get date_time_period for: 12 clock hour [0..11]. More...
 
date_time_period boost::locale::period::am_pm (int v)
 Get date_time_period for: am or pm marker [0..1]. More...
 
date_time_period boost::locale::period::minute (int v)
 Get date_time_period for: minute [0..59]. More...
 
date_time_period boost::locale::period::second (int v)
 Get date_time_period for: second [0..59]. More...
 
date_time_period boost::locale::period::week_of_year (int v)
 Get date_time_period for: The week number in the year. More...
 
date_time_period boost::locale::period::week_of_month (int v)
 Get date_time_period for: The week number within current month. More...
 
date_time_period boost::locale::period::first_day_of_week (int v)
 Get date_time_period for: First day of week, constant, for example Sunday in US = 1, Monday in France = 2. More...
 
date_time_period boost::locale::period::january ()
 Get predefined constant for January. More...
 
date_time_period boost::locale::period::february ()
 Get predefined constant for February. More...
 
date_time_period boost::locale::period::march ()
 Get predefined constant for March. More...
 
date_time_period boost::locale::period::april ()
 Get predefined constant for April. More...
 
date_time_period boost::locale::period::may ()
 Get predefined constant for May. More...
 
date_time_period boost::locale::period::june ()
 Get predefined constant for June. More...
 
date_time_period boost::locale::period::july ()
 Get predefined constant for July. More...
 
date_time_period boost::locale::period::august ()
 Get predefined constant for August. More...
 
date_time_period boost::locale::period::september ()
 Get predefined constant for September. More...
 
date_time_period boost::locale::period::october ()
 Get predefined constant for October. More...
 
date_time_period boost::locale::period::november ()
 Get predefined constant for November. More...
 
date_time_period boost::locale::period::december ()
 Get predefined constant for December. More...
 
date_time_period boost::locale::period::sunday ()
 Get predefined constant for Sunday. More...
 
date_time_period boost::locale::period::monday ()
 Get predefined constant for Monday. More...
 
date_time_period boost::locale::period::tuesday ()
 Get predefined constant for Tuesday. More...
 
date_time_period boost::locale::period::wednesday ()
 Get predefined constant for Wednesday. More...
 
date_time_period boost::locale::period::thursday ()
 Get predefined constant for Thursday. More...
 
date_time_period boost::locale::period::friday ()
 Get predefined constant for Friday. More...
 
date_time_period boost::locale::period::saturday ()
 Get predefined constant for Saturday. More...
 
date_time_period boost::locale::period::am ()
 Get predefined constant for AM (Ante Meridiem) More...
 
date_time_period boost::locale::period::pm ()
 Get predefined constant for PM (Post Meridiem) More...
 
date_time_period boost::locale::period::operator+ (period::period_type f)
 convert period_type to date_time_period(f,1) More...
 
date_time_period boost::locale::period::operator- (period::period_type f)
 convert period_type to date_time_period(f,-1) More...
 
template<typename T >
date_time_period boost::locale::period::operator* (period::period_type f, T v)
 Create date_time_period of type f with value v. More...
 
template<typename T >
date_time_period boost::locale::period::operator* (T v, period::period_type f)
 Create date_time_period of type f with value v. More...
 
template<typename T >
date_time_period boost::locale::period::operator* (T v, date_time_period f)
 Create date_time_period of type f with value v. More...
 
template<typename T >
date_time_period boost::locale::period::operator* (date_time_period f, T v)
 Create date_time_period of type f with value v. More...
 
date_time_period_set boost::locale::operator+ (date_time_period_set const &a, date_time_period_set const &b)
 Append two periods sets. More...
 
date_time_period_set boost::locale::operator- (date_time_period_set const &a, date_time_period_set const &b)
 Append two period sets when all periods of set change their sign. More...
 
template<typename CharType >
std::basic_ostream< CharType > & boost::locale::operator<< (std::basic_ostream< CharType > &out, date_time const &t)
 Writes date_time t to output stream out. More...
 
template<typename CharType >
std::basic_istream< CharType > & boost::locale::operator>> (std::basic_istream< CharType > &in, date_time &t)
 Reads date_time t from output stream in. More...
 
date_time_duration boost::locale::operator- (date_time const &later, date_time const &earlier)
 Calculates the difference between two dates, the left operand is a later point on time line. More...
 
int boost::locale::period::era (date_time const &dt)
 Extract from date_time numerical value of Era i.e. More...
 
int boost::locale::period::year (date_time const &dt)
 Extract from date_time numerical value of Year, it is calendar specific, for example 2011 in Gregorian calendar. More...
 
int boost::locale::period::extended_year (date_time const &dt)
 Extract from date_time numerical value of Extended year for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1. More...
 
int boost::locale::period::month (date_time const &dt)
 Extract from date_time numerical value of The month of year, calendar specific, in Gregorian [0..11]. More...
 
int boost::locale::period::day (date_time const &dt)
 Extract from date_time numerical value of The day of month, calendar specific, in Gregorian [1..31]. More...
 
int boost::locale::period::day_of_year (date_time const &dt)
 Extract from date_time numerical value of The number of day in year, starting from 1, in Gregorian [1..366]. More...
 
int boost::locale::period::day_of_week (date_time const &dt)
 Extract from date_time numerical value of Day of week, Sunday=1, Monday=2,..., Saturday=7. More...
 
int boost::locale::period::day_of_week_in_month (date_time const &dt)
 Extract from date_time numerical value of Original number of the day of the week in month. More...
 
int boost::locale::period::day_of_week_local (date_time const &dt)
 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]. More...
 
int boost::locale::period::hour (date_time const &dt)
 Extract from date_time numerical value of 24 clock hour [0..23]. More...
 
int boost::locale::period::hour_12 (date_time const &dt)
 Extract from date_time numerical value of 12 clock hour [0..11]. More...
 
int boost::locale::period::am_pm (date_time const &dt)
 Extract from date_time numerical value of am or pm marker [0..1]. More...
 
int boost::locale::period::minute (date_time const &dt)
 Extract from date_time numerical value of minute [0..59]. More...
 
int boost::locale::period::second (date_time const &dt)
 Extract from date_time numerical value of second [0..59]. More...
 
int boost::locale::period::week_of_year (date_time const &dt)
 Extract from date_time numerical value of The week number in the year. More...
 
int boost::locale::period::week_of_month (date_time const &dt)
 Extract from date_time numerical value of The week number within current month. More...
 
int boost::locale::period::first_day_of_week (date_time const &dt)
 Extract from date_time numerical value of First day of week, constant, for example Sunday in US = 1, Monday in France = 2. More...
 
int boost::locale::period::era (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in Era i.e. More...
 
int boost::locale::period::year (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in years. More...
 
int boost::locale::period::extended_year (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in extended years (for Gregorian/Julian calendars, where 1 BC == 0, 2 BC == -1). More...
 
int boost::locale::period::month (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in months. More...
 
int boost::locale::period::day (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in days of month. More...
 
int boost::locale::period::day_of_year (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in days of year. More...
 
int boost::locale::period::day_of_week (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in days of week. More...
 
int boost::locale::period::day_of_week_in_month (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in original number of the day of the week in month. More...
 
int boost::locale::period::day_of_week_local (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in local day of week. More...
 
int boost::locale::period::hour (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in hours. More...
 
int boost::locale::period::hour_12 (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in 12 clock hours. More...
 
int boost::locale::period::am_pm (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in am or pm markers. More...
 
int boost::locale::period::minute (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in minutes. More...
 
int boost::locale::period::second (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in seconds. More...
 
int boost::locale::period::week_of_year (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in the week number in the year. More...
 
int boost::locale::period::week_of_month (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in The week number within current month. More...
 
int boost::locale::period::first_day_of_week (date_time_duration const &dt)
 Extract from date_time_duration numerical value of duration in the first day of week. More...