Gregorian Reference
std::basic_string< charT >
const date &
std::string
const date &
To YYYY-mmm-DD string where mmm 3 char month name. Example: 2002-Jan-01.
std::basic_string< charT >
const date_period &
std::string
const date_period &
Convert date period to simple string. Example: [2002-Jan-01/2002-Jan-02].
std::basic_string< charT >
const date_period &
std::string
const date_period &
Date period to iso standard format CCYYMMDD/CCYYMMDD. Example: 20021225/20021231.
std::basic_string< charT >
const date &
std::string
const date &
Convert to iso extended format string CCYY-MM-DD. Example 2002-12-31.
std::basic_string< charT >
const date &
std::string
const date &
Convert to iso standard string YYYYMMDD. Example: 20021231.
std::basic_string< charT >
const date &
std::string
const date &
std::wstring
const date_period &
Convert date period to simple string. Example: [2002-Jan-01/2002-Jan-02].
std::wstring
const date &
To YYYY-mmm-DD string where mmm 3 char month name. Example: 2002-Jan-01.
std::wstring
const date_period &
Date period to iso standard format CCYYMMDD/CCYYMMDD. Example: 20021225/20021231.
std::wstring
const date &
Convert to iso extended format string CCYY-MM-DD. Example 2002-12-31.
std::wstring
const date &
Convert to iso standard string YYYYMMDD. Example: 20021231.
std::wstring
const date &
Gregorian calendar for this implementation, hard work in the base.
Type to hold a weekday (eg: Sunday, Monday,...).
greg_weekday
Counter type from 1 to 366 for gregorian dates.
greg_day_of_year_rep
Internal date representation that handles infinity, not a date.
fancy_date_rep
Date rep implements the traits stuff as well.
fancy_date_rep
An internal date representation that includes infinities, not a date.
date_time::int_adapter< unsigned long >
A date type based on gregorian_calendar.
This class is the primary interface for programming with greogorian dates. The is a lightweight type that can be freely passed by value. All comparison operators are supported.
gregorian_calendar::year_type
gregorian_calendar::month_type
gregorian_calendar::day_type
gregorian_calendar::day_of_year_type
gregorian_calendar::ymd_type
gregorian_calendar::date_rep_type
gregorian_calendar::date_int_type
date_duration
date_int_type
Return the Julian Day number for the date.
day_of_year_type
Return the day of year 1..365 or 1..366 (for leap year).
long
Return the Modified Julian Day number for the date.
int
Return the iso 8601 week number 1..53.
date_int_type
Return the day number from the calendar.
Default constructor constructs with not_a_date_time.
year_type
month_type
day_type
Main constructor with year, month, day.
const ymd_type &
Constructor from a ymd_type structure.
const date_int_type &
Needed copy constructor.
date_rep_type
Needed copy constructor.
special_values
Constructor for infinities, not a date, max and min date.
Exception type for gregorian day of month (1..31).
const std::string &
Allow other classes to throw with unique string for bad day like Feb 29.
Represent a day of the month (range 1 - 31).
This small class allows for simple conversion an integer value into a day of the month for a standard gregorian calendar. The type is automatically range checked so values outside of the range 1-31 will cause a bad_day_of_month exception
unsigned short
unsigned short
unsigned short
Policy class that declares error handling and day of month ranges.
CV::simple_exception_policy< unsigned short, 1, 31, bad_day_of_month >
Generated represetation for gregorian day of month.
CV::constrained_value< greg_day_policies >
Exception type for day of year (1..366).
A day of the year range (1..366).
CV::simple_exception_policy< unsigned short, 1, 366, bad_day_of_year >
Define a range representation type for the day of the year 1..366.
CV::constrained_value< greg_day_of_year_policies >
An internal date representation that includes infinities, not a date.
boost::date_time::duration_traits_adapted
Durations in days for gregorian system.
date_time::date_duration< date_duration_rep >
Shorthand for date_duration.
date_duration
config struct for additional duration types (ie months_duration<> & years_duration<>)
date
date_time::int_adapter< int >
date_time::month_functor< date_type >
date_time::months_duration< greg_durations_config >
date_time::years_duration< greg_durations_config >
date_time::weeks_duration< date_time::duration_traits_adapted >
Configuration of the output facet template.
boost::gregorian::greg_month
boost::date_time::special_values
boost::gregorian::months_of_year
boost::date_time::weekdays
Create the base facet type for gregorian::date.
boost::date_time::date_names_put< greg_facet_config >
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const date &
ostream operator for gregorian::date
Uses the date facet to determine various output parameters including:
string values for the month (eg: Jan, Feb, Mar) (default: English)string values for special values (eg: not-a-date-time) (default: English)selection of long, short strings, or numerical month representation (default: short string)month day year order (default yyyy-mmm-dd)
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const greg_month &
operator<< for gregorian::greg_month typically streaming: Jan, Feb, Mar...
Uses the date facet to determine output string as well as selection of long or short strings. Default if no facet is installed is to output a 2 wide numeric value for the month eg: 01 == Jan, 02 == Feb, ... 12 == Dec.
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const greg_weekday &
operator<< for gregorian::greg_weekday typically streaming: Sun, Mon, Tue, ...
Uses the date facet to determine output string as well as selection of long or short string. Default if no facet is installed is to output a 3 char english string for the day of the week.
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const date_period &
operator<< for gregorian::date_period typical output: [2002-Jan-01/2002-Jan-31]
Uses the date facet to determine output string as well as selection of long or short string fr dates. Default if no facet is installed is to output a 3 char english string for the day of the week.
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const date_duration &
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const partial_date &
operator<< for gregorian::partial_date. Output: "Jan 1"
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const nth_kday_of_month &
operator<< for gregorian::nth_kday_of_month. Output: "first Mon of Jun"
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const first_kday_of_month &
operator<< for gregorian::first_kday_of_month. Output: "first Mon of Jun"
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const last_kday_of_month &
operator<< for gregorian::last_kday_of_month. Output: "last Mon of Jun"
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const first_kday_after &
operator<< for gregorian::first_kday_after. Output: "first Mon after"
std::basic_ostream< charT, traits > &
std::basic_ostream< charT, traits > &
const first_kday_before &
operator<< for gregorian::first_kday_before. Output: "first Mon before"
std::basic_istream< charT > &
std::basic_istream< charT > &
date &
operator>> for gregorian::date
std::basic_istream< charT > &
std::basic_istream< charT > &
date_duration &
operator>> for gregorian::date_duration
std::basic_istream< charT > &
std::basic_istream< charT > &
date_period &
operator>> for gregorian::date_period
BOOST_DATE_TIME_DECL std::locale
std::locale &
char
generates a locale with the set of gregorian name-strings of type char*
BOOST_DATE_TIME_DECL boost::date_time::all_date_names_put< greg_facet_config, char > *
char
Returns a pointer to a facet with a default set of names (English).
BOOST_DATE_TIME_DECL std::locale
std::locale &
wchar_t
generates a locale with the set of gregorian name-strings of type wchar_t*
BOOST_DATE_TIME_DECL boost::date_time::all_date_names_put< greg_facet_config, wchar_t > *
wchar_t
Returns a pointer to a facet with a default set of names (English).
std::basic_istream< charT > &
std::basic_istream< charT > &
greg_month &
operator>> for gregorian::greg_month - throws exception if invalid month given
std::basic_istream< charT > &
std::basic_istream< charT > &
greg_weekday &
operator>> for gregorian::greg_weekday - throws exception if invalid weekday given
Exception thrown if a greg_month is constructed with a value out of range.
Wrapper class to represent months in gregorian based calendar.
date_time::months_of_year
std::map< std::string, unsigned short >
boost::shared_ptr< month_map_type >
unsigned short
Convert the value back to a short.
unsigned short
Returns month as number from 1 to 12.
month_enum
const char *
const char *
const wchar_t *
const wchar_t *
const char *
char
const char *
char
const wchar_t *
wchar_t
const wchar_t *
wchar_t
month_enum
Construct a month from the months_of_year enumeration.
unsigned short
Construct from a short value.
month_map_ptr_type
Shared pointer to a map of Month strings (Names & Abbrev) & numbers.
date_time::months_of_year
Build a policy class for the greg_month_rep.
CV::simple_exception_policy< unsigned short, 1, 12, bad_month >
A constrained range that implements the gregorian_month rules.
CV::constrained_value< greg_month_policies >
Exception that flags that a weekday number is incorrect.
Represent a day within a week (range 0==Sun to 6==Sat).
boost::date_time::weekdays
unsigned short
const char *
const char *
const wchar_t *
const wchar_t *
weekday_enum
unsigned short
CV::simple_exception_policy< unsigned short, 0, 6, bad_weekday >
CV::constrained_value< greg_weekday_policies >
Exception type for gregorian year.
Represent a day of the month (range 1900 - 10000).
This small class allows for simple conversion an integer value into a year for the gregorian calendar. This currently only allows a range of 1900 to 10000. Both ends of the range are a bit arbitrary at the moment, but they are the limits of current testing of the library. As such they may be increased in the future.
unsigned short
unsigned short
Policy class that declares error handling gregorian year type.
CV::simple_exception_policy< unsigned short, 1400, 10000, bad_year >
Generated representation for gregorian year.
CV::constrained_value< greg_year_policies >
date_time::year_month_day_base< greg_year, greg_month, greg_day >
Single file header that provides overall include for all elements of the gregorian date-time system. This includes the various types defined, but also other functions for formatting and parsing.
Single file header that defines most of the types for the gregorian date-time system.
Date periods for the gregorian system.
date_time::period< date, date_duration >
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
date_time::year_based_generator< date >
A date generation object type.
date_time::partial_date< date >
date_time::nth_kday_of_month< date >
nth_kday_of_month
date_time::first_kday_of_month< date >
first_kday_of_month
date_time::last_kday_of_month< date >
last_kday_of_month
date_time::first_kday_after< date >
first_kday_after
date_time::first_kday_before< date >
first_kday_before
A clock to get the current day from the local computer.
date_time::day_clock< date >
Base date_iterator type for gregorian types.
date_time::date_itr_base< date >
A day level iterator.
date_time::date_itr< date_time::day_functor< date >, date >
A week level iterator.
date_time::date_itr< date_time::week_functor< date >, date >
A month level iterator.
date_time::date_itr< date_time::month_functor< date >, date >
A year level iterator.
date_time::date_itr< date_time::year_functor< date >, date >
date
std::string
Deprecated: Use from_simple_string.
date
std::string
From delimited date string where with order year-month-day eg: 2002-1-25 or 2003-Jan-25 (full month name is also accepted).
date
std::string
From delimited date string where with order year-month-day eg: 1-25-2003 or Jan-25-2003 (full month name is also accepted).
date
std::string
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
std::string
From iso type date string where with order year-month-day eg: 20020125.
date
const std::string &
From iso type date string where with order year-month-day eg: 20020125.
date
iterator_type
iterator_type
Stream should hold a date in the form of: 2002-1-25. Month number, abbrev, or name are accepted.
date_period
const std::string &
Function to parse a date_period from a string (eg: [2003-Oct-31/2003-Dec-25]).
date_period
const std::wstring &
Function to parse a date_period from a wstring (eg: [2003-Oct-31/2003-Dec-25]).