Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gregorian Namespace Reference

Gregorian date system based on date_time components. More...

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  date_duration
 Durations in days for gregorian system. 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...
 
struct  greg_facet_config
 Configuration of the output facet template. 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...
 
class  weeks_duration
 

Typedefs

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

Functions

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. More...
 
date date_from_tm (const std::tm &datetm)
 Converts a tm structure into a date dropping the any time values. More...
 
template<class charT >
std::basic_string< charT > to_simple_string_type (const date &d)
 
std::string to_simple_string (const date &d)
 To YYYY-mmm-DD string where mmm 3 char month name. Example: 2002-Jan-01. More...
 
template<class charT >
std::basic_string< charT > to_simple_string_type (const date_period &d)
 
std::string to_simple_string (const date_period &d)
 Convert date period to simple string. Example: [2002-Jan-01/2002-Jan-02]. More...
 
template<class charT >
std::basic_string< charT > to_iso_string_type (const date_period &d)
 
std::string to_iso_string (const date_period &d)
 Date period to iso standard format CCYYMMDD/CCYYMMDD. Example: 20021225/20021231. More...
 
template<class charT >
std::basic_string< charT > to_iso_extended_string_type (const date &d)
 
std::string to_iso_extended_string (const date &d)
 Convert to iso extended format string CCYY-MM-DD. Example 2002-12-31. More...
 
template<class charT >
std::basic_string< charT > to_iso_string_type (const date &d)
 
std::string to_iso_string (const date &d)
 Convert to iso standard string YYYYMMDD. Example: 20021231. More...
 
template<class charT >
std::basic_string< charT > to_sql_string_type (const date &d)
 
std::string to_sql_string (const date &d)
 
std::wstring to_simple_wstring (const date_period &d)
 Convert date period to simple string. Example: [2002-Jan-01/2002-Jan-02]. More...
 
std::wstring to_simple_wstring (const date &d)
 To YYYY-mmm-DD string where mmm 3 char month name. Example: 2002-Jan-01. More...
 
std::wstring to_iso_wstring (const date_period &d)
 Date period to iso standard format CCYYMMDD/CCYYMMDD. Example: 20021225/20021231. More...
 
std::wstring to_iso_extended_wstring (const date &d)
 Convert to iso extended format string CCYY-MM-DD. Example 2002-12-31. More...
 
std::wstring to_iso_wstring (const date &d)
 Convert to iso standard string YYYYMMDD. Example: 20021231. More...
 
std::wstring to_sql_wstring (const date &d)
 
template<class charT >
std::basic_istream< charT > & operator>> (std::basic_istream< charT > &is, date &d)
 operator>> for gregorian::date More...
 
template<class charT >
std::basic_istream< charT > & operator>> (std::basic_istream< charT > &is, date_duration &dd)
 operator>> for gregorian::date_duration More...
 
template<class charT >
std::basic_istream< charT > & operator>> (std::basic_istream< charT > &is, date_period &dp)
 operator>> for gregorian::date_period More...
 
BOOST_DATE_TIME_DECL std::locale generate_locale (std::locale &loc, char type)
 generates a locale with the set of gregorian name-strings of type char* More...
 
BOOST_DATE_TIME_DECL
boost::date_time::all_date_names_put
< greg_facet_config, char > * 
create_facet_def (char type)
 Returns a pointer to a facet with a default set of names (English) More...
 
BOOST_DATE_TIME_DECL std::locale generate_locale (std::locale &loc, wchar_t type)
 generates a locale with the set of gregorian name-strings of type wchar_t* More...
 
BOOST_DATE_TIME_DECL
boost::date_time::all_date_names_put
< greg_facet_config, wchar_t > * 
create_facet_def (wchar_t type)
 Returns a pointer to a facet with a default set of names (English) More...
 
template<class charT >
std::basic_istream< charT > & operator>> (std::basic_istream< charT > &is, greg_month &m)
 operator>> for gregorian::greg_month - throws exception if invalid month given More...
 
template<class charT >
std::basic_istream< charT > & operator>> (std::basic_istream< charT > &is, greg_weekday &wd)
 operator>> for gregorian::greg_weekday - throws exception if invalid weekday given More...
 
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, date &d)
 input operator for date More...
 
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 Traits >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, date_duration &dd)
 input operator for date_duration More...
 
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 Traits >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, date_period &dp)
 input operator for date_period More...
 
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 Traits >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, greg_month &m)
 input operator for greg_month More...
 
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 Traits >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, greg_weekday &wd)
 input operator for greg_weekday More...
 
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 More...
 
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 More...
 
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 Traits >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, partial_date &pd)
 input operator for partial_date More...
 
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 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 More...
 
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 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 More...
 
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 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 More...
 
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 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 More...
 
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 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 More...
 
BOOST_DATE_TIME_DECL special_values special_value_from_string (const std::string &s)
 Return special_value from string argument. More...
 
date from_string (std::string s)
 Deprecated: Use from_simple_string. More...
 
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) More...
 
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) More...
 
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) More...
 
date from_undelimited_string (std::string s)
 From iso type date string where with order year-month-day eg: 20020125. More...
 
date date_from_iso_string (const std::string &s)
 From iso type date string where with order year-month-day eg: 20020125. More...
 
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. More...
 
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]) More...
 
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]) More...
 

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.

Typedef Documentation

An internal date representation that includes infinities, not a date.

Base date_iterator type for gregorian types.

Date periods for the gregorian system.

A clock to get the current day from the local computer.

An internal date representation that includes infinities, not a date.

A day of the year range (1..366)

Define a range representation type for the day of the year 1..366.

Policy class that declares error handling and day of month ranges.

Generated represetation for gregorian day of month.

Build a policy class for the greg_month_rep.

A constrained range that implements the gregorian_month rules.

Policy class that declares error handling gregorian year type.

Generated representation for gregorian year.

A date generation object type.

A unifying date_generator base type.

A unifying date_generator base type for: partial_date, nth_day_of_the_week_in_month, first_day_of_the_week_in_month, and last_day_of_the_week_in_month

Function Documentation

BOOST_DATE_TIME_DECL boost::date_time::all_date_names_put<greg_facet_config, char>* boost::gregorian::create_facet_def ( char  type)

Returns a pointer to a facet with a default set of names (English)

Referenced by operator>>().

BOOST_DATE_TIME_DECL boost::date_time::all_date_names_put<greg_facet_config, wchar_t>* boost::gregorian::create_facet_def ( wchar_t  type)

Returns a pointer to a facet with a default set of names (English)

date boost::gregorian::date_from_iso_string ( const std::string &  s)
inline

From iso type date string where with order year-month-day eg: 20020125.

References boost::asio::s.

date boost::gregorian::date_from_tm ( const std::tm &  datetm)
inline

Converts a tm structure into a date dropping the any time values.

References boost::locale::flags::date.

Referenced by boost::posix_time::ptime_from_tm().

date_period boost::gregorian::date_period_from_string ( const std::string &  s)
inline

Function to parse a date_period from a string (eg: [2003-Oct-31/2003-Dec-25])

date_period boost::gregorian::date_period_from_wstring ( const std::wstring &  s)
inline

Function to parse a date_period from a wstring (eg: [2003-Oct-31/2003-Dec-25])

date boost::gregorian::from_simple_string ( std::string  s)
inline

From delimited date string where with order year-month-day eg: 2002-1-25 or 2003-Jan-25 (full month name is also accepted)

References boost::asio::s, and boost::date_time::ymd_order_iso.

template<class iterator_type >
date boost::gregorian::from_stream ( iterator_type  beg,
iterator_type  end 
)
inline

Stream should hold a date in the form of: 2002-1-25. Month number, abbrev, or name are accepted.

References boost::locale::flags::date, boost::end, and boost::date_time::not_a_date_time.

Referenced by operator>>().

date boost::gregorian::from_string ( std::string  s)
inline

Deprecated: Use from_simple_string.

References boost::asio::s.

date boost::gregorian::from_uk_string ( std::string  s)
inline

From delimited date string where with order day-month-year eg: 25-1-2002 or 25-Jan-2003 (full month name is also accepted)

References boost::asio::s, and boost::date_time::ymd_order_dmy.

date boost::gregorian::from_undelimited_string ( std::string  s)
inline

From iso type date string where with order year-month-day eg: 20020125.

References boost::asio::s.

Referenced by boost::serialization::load().

date boost::gregorian::from_us_string ( std::string  s)
inline

From delimited date string where with order year-month-day eg: 1-25-2003 or Jan-25-2003 (full month name is also accepted)

References boost::asio::s, and boost::date_time::ymd_order_us.

BOOST_DATE_TIME_DECL std::locale boost::gregorian::generate_locale ( std::locale &  loc,
char  type 
)

generates a locale with the set of gregorian name-strings of type char*

Referenced by operator>>().

BOOST_DATE_TIME_DECL std::locale boost::gregorian::generate_locale ( std::locale &  loc,
wchar_t  type 
)

generates a locale with the set of gregorian name-strings of type wchar_t*

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::date d 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::date_duration dd 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::date_period dp 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::greg_month gm 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::greg_weekday gw 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::partial_date pd 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::nth_day_of_the_week_in_month nkd 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::first_day_of_the_week_in_month fkd 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::last_day_of_the_week_in_month lkd 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::first_day_of_the_week_after fda 
)
inline

References boost::put().

template<class CharT , class TraitsT >
std::basic_ostream<CharT, TraitsT>& boost::gregorian::operator<< ( std::basic_ostream< CharT, TraitsT > &  os,
const boost::gregorian::first_day_of_the_week_before fdb 
)
inline

References boost::put().

template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
date &  d 
)
inline
template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
date_duration &  dd 
)
inline
template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
date_period &  dp 
)
inline
template<class charT >
std::basic_istream<charT>& boost::gregorian::operator>> ( std::basic_istream< charT > &  is,
date &  d 
)
inline

operator>> for gregorian::date

References boost::xpressive::eos, and from_stream().

template<class charT >
std::basic_istream<charT>& boost::gregorian::operator>> ( std::basic_istream< charT > &  is,
date_duration &  dd 
)
inline

operator>> for gregorian::date_duration

template<class charT >
std::basic_istream<charT>& boost::gregorian::operator>> ( std::basic_istream< charT > &  is,
date_period &  dp 
)
inline

operator>> for gregorian::date_period

References boost::asio::s.

template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
greg_month &  m 
)
inline
template<class charT >
std::basic_istream<charT>& boost::gregorian::operator>> ( std::basic_istream< charT > &  is,
greg_month &  m 
)
inline
template<class charT >
std::basic_istream<charT>& boost::gregorian::operator>> ( std::basic_istream< charT > &  is,
greg_weekday &  wd 
)
inline
template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
greg_weekday &  wd 
)
inline
template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
greg_day &  gd 
)
inline
template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
greg_year &  gy 
)
inline
template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
partial_date &  pd 
)
inline
template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
nth_day_of_the_week_in_month &  nday 
)
inline

input operator for nth_day_of_the_week_in_month

References boost::regex_constants::failbit, and boost::date_time::date_input_facet< date_type, CharT, InItrT >::get().

template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
first_day_of_the_week_in_month &  fkd 
)
inline

input operator for first_day_of_the_week_in_month

References boost::regex_constants::failbit, and boost::date_time::date_input_facet< date_type, CharT, InItrT >::get().

template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
last_day_of_the_week_in_month &  lkd 
)
inline

input operator for last_day_of_the_week_in_month

References boost::regex_constants::failbit, and boost::date_time::date_input_facet< date_type, CharT, InItrT >::get().

template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
first_day_of_the_week_after &  fka 
)
inline

input operator for first_day_of_the_week_after

References boost::regex_constants::failbit, and boost::date_time::date_input_facet< date_type, CharT, InItrT >::get().

template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& boost::gregorian::operator>> ( std::basic_istream< CharT, Traits > &  is,
first_day_of_the_week_before &  fkb 
)
inline

input operator for first_day_of_the_week_before

References boost::regex_constants::failbit, and boost::date_time::date_input_facet< date_type, CharT, InItrT >::get().

BOOST_DATE_TIME_DECL special_values boost::gregorian::special_value_from_string ( const std::string &  s)

Return special_value from string argument.

Return special_value from string argument. If argument is not one of the special value names (defined in src/gregorian/names.hpp), return 'not_special'

Referenced by boost::serialization::load().

std::string boost::gregorian::to_iso_extended_string ( const date &  d)
inline

Convert to iso extended format string CCYY-MM-DD. Example 2002-12-31.

template<class charT >
std::basic_string<charT> boost::gregorian::to_iso_extended_string_type ( const date &  d)
inline
std::wstring boost::gregorian::to_iso_extended_wstring ( const date &  d)
inline

Convert to iso extended format string CCYY-MM-DD. Example 2002-12-31.

std::string boost::gregorian::to_iso_string ( const date_period &  d)
inline

Date period to iso standard format CCYYMMDD/CCYYMMDD. Example: 20021225/20021231.

Referenced by boost::serialization::save().

std::string boost::gregorian::to_iso_string ( const date &  d)
inline

Convert to iso standard string YYYYMMDD. Example: 20021231.

template<class charT >
std::basic_string<charT> boost::gregorian::to_iso_string_type ( const date_period &  d)
inline
template<class charT >
std::basic_string<charT> boost::gregorian::to_iso_string_type ( const date &  d)
inline
std::wstring boost::gregorian::to_iso_wstring ( const date_period &  d)
inline

Date period to iso standard format CCYYMMDD/CCYYMMDD. Example: 20021225/20021231.

std::wstring boost::gregorian::to_iso_wstring ( const date &  d)
inline

Convert to iso standard string YYYYMMDD. Example: 20021231.

std::string boost::gregorian::to_simple_string ( const date &  d)
inline

To YYYY-mmm-DD string where mmm 3 char month name. Example: 2002-Jan-01.

Referenced by boost::serialization::save().

std::string boost::gregorian::to_simple_string ( const date_period &  d)
inline

Convert date period to simple string. Example: [2002-Jan-01/2002-Jan-02].

template<class charT >
std::basic_string<charT> boost::gregorian::to_simple_string_type ( const date &  d)
inline
template<class charT >
std::basic_string<charT> boost::gregorian::to_simple_string_type ( const date_period &  d)
inline
std::wstring boost::gregorian::to_simple_wstring ( const date_period &  d)
inline

Convert date period to simple string. Example: [2002-Jan-01/2002-Jan-02].

std::wstring boost::gregorian::to_simple_wstring ( const date &  d)
inline

To YYYY-mmm-DD string where mmm 3 char month name. Example: 2002-Jan-01.

std::string boost::gregorian::to_sql_string ( const date &  d)
inline
template<class charT >
std::basic_string<charT> boost::gregorian::to_sql_string_type ( const date &  d)
inline
std::wstring boost::gregorian::to_sql_wstring ( const date &  d)
inline