Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Class gregorian_calendar

boost::gregorian::gregorian_calendar — Gregorian calendar for this implementation, hard work in the base.


class gregorian_calendar {
  // types
  typedef greg_weekday         day_of_week_type;  // Type to hold a weekday (eg: Sunday, Monday,...). 
  typedef greg_day_of_year_rep day_of_year_type;  // Counter type from 1 to 366 for gregorian dates. 
  typedef fancy_date_rep       date_rep_type;     // Internal date representation that handles infinity, not a date. 
  typedef fancy_date_rep       date_traits_type;  // Date rep implements the traits stuff as well.