Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template gregorian_calendar_base

boost::date_time::gregorian_calendar_base — An implementation of the Gregorian calendar.

Synopsis

// In header: <boost/date_time/gregorian_calendar.hpp>

template<typename ymd_type_, typename date_int_type_> 
class gregorian_calendar_base {
public:
  // types
  typedef             ;       // define a type a date split into components 
  typedef  ;     // define a type for representing months 
  typedef    ;       // define a type for representing days 
  typedef   ;      // Type to hold a stand alone year value (eg: 2002) 
  typedef        ;  // Define the integer type to use for internal calculations. 

  // public static functions
   ();
   ();
   ();
   
  ();
   
  ();
   ();
   ();
   
  ();
   ();
   
  (, );
   ();
   ();
};

Description

This is a parameterized implementation of a proleptic Gregorian Calendar that can be used in the creation of date systems or just to perform calculations. All the methods of this class are static functions, so the intent is to never create instances of this class.

Template Parameters

  1. typename ymd_type_

    Struct type representing the year, month, day. The ymd_type must define a of types for the year, month, and day. These types need to be arithmetic types.

  2. typename date_int_type_

    Underlying type for the date count. Must be an arithmetic type.

gregorian_calendar_base public static functions

  1.  ( ymd);
  2.  ( ymd);
  3.  ( ymd);
  4.  
    ( ymd);
  5.  
    ( ymd);
  6.  ();
  7.  ();
  8.  ();
  9.  ();
  10.  
    ( y,  m);
  11.  ();
  12.  ();

PrevUpHomeNext