Logo Search packages:      
Sourcecode: passenger version File versions  Download package

boost::gregorian Namespace Reference


Detailed Description

Gregorian date system based on date_time components.

This date system defines a full complement of types including a date, date_duration, date_period, day_clock, and a day_iterator.


Classes

struct  bad_day_of_month
 Exception type for gregorian day of month (1..31). More...
struct  bad_day_of_year
 Exception type for day of year (1..366). More...
struct  bad_month
 Exception thrown if a greg_month is constructed with a value out of range. More...
struct  bad_weekday
 Exception that flags that a weekday number is incorrect. More...
struct  bad_year
 Exception type for gregorian year. More...
class  date
 A date type based on gregorian_calendar. More...
class  greg_day
 Represent a day of the month (range 1 - 31). More...
struct  greg_durations_config
 config struct for additional duration types (ie months_duration<> & years_duration<>) More...
class  greg_month
 Wrapper class to represent months in gregorian based calendar. More...
class  greg_weekday
 Represent a day within a week (range 0==Sun to 6==Sat). More...
class  greg_year
 Represent a day of the month (range 1900 - 10000). More...
class  gregorian_calendar
 Gregorian calendar for this implementation, hard work in the base. More...

Typedefs

typedef
date_time::date_duration
< date_duration_rep
date_duration
 Durations in days for gregorian system.
typedef
boost::date_time::duration_traits_adapted 
date_duration_rep
 An internal date representation that includes infinities, not a date.
typedef
boost::date_time::date_facet
< date, char > 
date_facet
typedef
boost::date_time::date_input_facet
< date, char > 
date_input_facet
typedef
date_time::date_itr_base< date
date_iterator
 Base date_iterator type for gregorian types.
typedef date_time::period
< date, date_duration
date_period
 Date periods for the gregorian system.
typedef date_time::day_clock
< date
day_clock
 A clock to get the current day from the local computer.
typedef date_time::date_itr
< date_time::day_functor< date >
, date
day_iterator
 A day level iterator.
typedef date_duration days
 Shorthand for date_duration.
typedef date_time::int_adapter
< unsigned long > 
fancy_date_rep
 An internal date representation that includes infinities, not a date.
typedef first_kday_after first_day_of_the_week_after
typedef first_kday_before first_day_of_the_week_before
typedef first_kday_of_month first_day_of_the_week_in_month
typedef
date_time::first_kday_after
< date
first_kday_after
typedef
date_time::first_kday_before
< date
first_kday_before
typedef
date_time::first_kday_of_month
< date
first_kday_of_month
typedef
CV::simple_exception_policy
< unsigned short,
1, 366, bad_day_of_year
greg_day_of_year_policies
 A day of the year range (1..366).
typedef CV::constrained_value
< greg_day_of_year_policies
greg_day_of_year_rep
 Define a range representation type for the day of the year 1..366.
typedef
CV::simple_exception_policy
< unsigned short,
1, 31, bad_day_of_month
greg_day_policies
 Policy class that declares error handling and day of month ranges.
typedef CV::constrained_value
< greg_day_policies
greg_day_rep
 Generated represetation for gregorian day of month.
typedef
CV::simple_exception_policy
< unsigned short,
1, 12, bad_month
greg_month_policies
 Build a policy class for the greg_month_rep.
typedef CV::constrained_value
< greg_month_policies
greg_month_rep
 A constrained range that implements the gregorian_month rules.
typedef
CV::simple_exception_policy
< unsigned short,
0, 6, bad_weekday
greg_weekday_policies
typedef CV::constrained_value
< greg_weekday_policies
greg_weekday_rep
typedef
date_time::year_month_day_base
< greg_year, greg_month,
greg_day
greg_year_month_day
typedef
CV::simple_exception_policy
< unsigned short,
1400, 10000, bad_year
greg_year_policies
 Policy class that declares error handling gregorian year type.
typedef CV::constrained_value
< greg_year_policies
greg_year_rep
 Generated representation for gregorian year.
typedef last_kday_of_month last_day_of_the_week_in_month
typedef
date_time::last_kday_of_month
< date
last_kday_of_month
typedef date_time::date_itr
< date_time::month_functor
< date >, date
month_iterator
 A month level iterator.
typedef
date_time::months_duration
< greg_durations_config
months
typedef date_time::months_of_year months_of_year
typedef nth_kday_of_month nth_day_of_the_week_in_month
typedef
date_time::nth_kday_of_month
< date
nth_kday_of_month
typedef
date_time::partial_date< date
partial_date
 A date generation object type.
typedef
boost::date_time::period_formatter
< char > 
period_formatter
typedef
boost::date_time::period_parser
< date, char > 
period_parser
typedef
boost::date_time::special_values_formatter
< char > 
special_values_formatter
typedef
boost::date_time::special_values_parser
< date, char > 
special_values_parser
typedef
boost::date_time::date_facet
< date, wchar_t > 
wdate_facet
typedef
boost::date_time::date_input_facet
< date, wchar_t > 
wdate_input_facet
typedef date_time::date_itr
< date_time::week_functor
< date >, date
week_iterator
 A week level iterator.
typedef
date_time::weeks_duration
< date_time::duration_traits_adapted
weeks
typedef
boost::date_time::period_formatter
< wchar_t > 
wperiod_formatter
typedef
boost::date_time::period_parser
< date, wchar_t > 
wperiod_parser
typedef
boost::date_time::special_values_formatter
< wchar_t > 
wspecial_values_formatter
typedef
boost::date_time::special_values_parser
< date, wchar_t > 
wspecial_values_parser
typedef
date_time::year_based_generator
< date
year_based_generator
 A unifying date_generator base type.
typedef date_time::date_itr
< date_time::year_functor
< date >, date
year_iterator
 A year level iterator.
typedef
date_time::years_duration
< greg_durations_config
years

Functions

date date_from_iso_string (const std::string &s)
 From iso type date string where with order year-month-day eg: 20020125.
date date_from_tm (const std::tm &datetm)
 Converts a tm structure into a date dropping the any time values.
date_period date_period_from_string (const std::string &s)
 Function to parse a date_period from a string (eg: [2003-Oct-31/2003-Dec-25]).
date_period date_period_from_wstring (const std::wstring &s)
 Function to parse a date_period from a wstring (eg: [2003-Oct-31/2003-Dec-25]).
date from_simple_string (std::string s)
 From delimited date string where with order year-month-day eg: 2002-1-25 or 2003-Jan-25 (full month name is also accepted).
template<class iterator_type>
date from_stream (iterator_type beg, iterator_type end)
 Stream should hold a date in the form of: 2002-1-25. Month number, abbrev, or name are accepted.
date from_string (std::string s)
 Deprecated: Use from_simple_string.
date from_uk_string (std::string s)
 From delimited date string where with order day-month-year eg: 25-1-2002 or 25-Jan-2003 (full month name is also accepted).
date from_undelimited_string (std::string s)
 From iso type date string where with order year-month-day eg: 20020125.
date from_us_string (std::string s)
 From delimited date string where with order year-month-day eg: 1-25-2003 or Jan-25-2003 (full month name is also accepted).
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::first_day_of_the_week_before &fdb)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::first_day_of_the_week_after &fda)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::last_day_of_the_week_in_month &lkd)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::first_day_of_the_week_in_month &fkd)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::nth_day_of_the_week_in_month &nkd)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::partial_date &pd)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::greg_weekday &gw)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::greg_month &gm)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::date_period &dp)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::date_duration &dd)
template<class CharT, class TraitsT>
std::basic_ostream< CharT,
TraitsT > & 
operator<< (std::basic_ostream< CharT, TraitsT > &os, const boost::gregorian::date &d)
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, first_day_of_the_week_before &fkb)
 input operator for first_day_of_the_week_before
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, first_day_of_the_week_after &fka)
 input operator for first_day_of_the_week_after
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, last_day_of_the_week_in_month &lkd)
 input operator for last_day_of_the_week_in_month
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, first_day_of_the_week_in_month &fkd)
 input operator for first_day_of_the_week_in_month
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, nth_day_of_the_week_in_month &nday)
 input operator for nth_day_of_the_week_in_month
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, partial_date &pd)
 input operator for partial_date
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, greg_year &gy)
 input operator for greg_year
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, greg_day &gd)
 input operator for greg_day
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, greg_weekday &wd)
 input operator for greg_weekday
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, greg_month &m)
 input operator for greg_month
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, date_period &dp)
 input operator for date_period
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, date_duration &dd)
 input operator for date_duration
template<class CharT, class Traits>
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, date &d)
 input operator for date
BOOST_DATE_TIME_DECL special_values special_value_from_string (const std::string &s)
 Return special_value from string argument.
std::string to_iso_extended_string (const date &d)
 Convert to iso extended format string CCYY-MM-DD. Example 2002-12-31.
template<class charT>
std::basic_string< charT > to_iso_extended_string_type (const date &d)
std::wstring to_iso_extended_wstring (const date &d)
 Convert to iso extended format string CCYY-MM-DD. Example 2002-12-31.
std::string to_iso_string (const date &d)
 Convert to iso standard string YYYYMMDD. Example: 20021231.
std::string to_iso_string (const date_period &d)
 Date period to iso standard format CCYYMMDD/CCYYMMDD. Example: 20021225/20021231.
template<class charT>
std::basic_string< charT > to_iso_string_type (const date &d)
template<class charT>
std::basic_string< charT > to_iso_string_type (const date_period &d)
std::wstring to_iso_wstring (const date &d)
 Convert to iso standard string YYYYMMDD. Example: 20021231.
std::wstring to_iso_wstring (const date_period &d)
 Date period to iso standard format CCYYMMDD/CCYYMMDD. Example: 20021225/20021231.
std::string to_simple_string (const date_period &d)
 Convert date period to simple string. Example: [2002-Jan-01/2002-Jan-02].
std::string to_simple_string (const date &d)
 To YYYY-mmm-DD string where mmm 3 char month name. Example: 2002-Jan-01.
template<class charT>
std::basic_string< charT > to_simple_string_type (const date_period &d)
template<class charT>
std::basic_string< charT > to_simple_string_type (const date &d)
std::wstring to_simple_wstring (const date &d)
 To YYYY-mmm-DD string where mmm 3 char month name. Example: 2002-Jan-01.
std::wstring to_simple_wstring (const date_period &d)
 Convert date period to simple string. Example: [2002-Jan-01/2002-Jan-02].
std::string to_sql_string (const date &d)
template<class charT>
std::basic_string< charT > to_sql_string_type (const date &d)
std::wstring to_sql_wstring (const date &d)
std::tm to_tm (const date &d)
 Converts a date to a tm struct. Throws out_of_range exception if date is a special value.


Generated by  Doxygen 1.6.0   Back to index