Definition and implementation of date algorithm templates. More...
#include <stdexcept>#include <sstream>#include <boost/throw_exception.hpp>#include <boost/date_time/date.hpp>#include <boost/date_time/compiler_config.hpp>

Classes | |
| class | boost::date_time::year_based_generator< date_type > | 
| Base class for all generators that take a year and produce a date.  More... | |
| class | boost::date_time::partial_date< date_type > | 
| Generates a date by applying the year to the given month and day.  More... | |
| class | boost::date_time::nth_kday_of_month< date_type > | 
| Useful generator functor for finding holidays.  More... | |
| class | boost::date_time::first_kday_of_month< date_type > | 
| Useful generator functor for finding holidays and daylight savings.  More... | |
| class | boost::date_time::last_kday_of_month< date_type > | 
| Calculate something like Last Sunday of January.  More... | |
| class | boost::date_time::first_kday_after< date_type > | 
| Calculate something like "First Sunday after Jan 1,2002.  More... | |
| class | boost::date_time::first_kday_before< date_type > | 
| Calculate something like "First Sunday before Jan 1,2002.  More... | |
Namespaces | |
| boost | |
| Duration formatting facet for input.  | |
| boost::date_time | |
Functions | |
| BOOST_DATE_TIME_DECL const char * | boost::date_time::nth_as_str (int n) | 
| Returns nth arg as string. 1 -> "first", 2 -> "second", max is 5.  More... | |
| template<typename date_type , class weekday_type > | |
| date_type::duration_type | boost::date_time::days_until_weekday (const date_type &d, const weekday_type &wd) | 
| Calculates the number of days until the next weekday.  More... | |
| template<typename date_type , class weekday_type > | |
| date_type::duration_type | boost::date_time::days_before_weekday (const date_type &d, const weekday_type &wd) | 
| Calculates the number of days since the previous weekday.  More... | |
| template<class date_type , class weekday_type > | |
| date_type | boost::date_time::next_weekday (const date_type &d, const weekday_type &wd) | 
| Generates a date object representing the date of the following weekday from the given date.  More... | |
| template<class date_type , class weekday_type > | |
| date_type | boost::date_time::previous_weekday (const date_type &d, const weekday_type &wd) | 
| Generates a date object representing the date of the previous weekday from the given date.  More... | |
Definition and implementation of date algorithm templates.