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 ymd_type_            ;       // 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 date_int_type_       ;  // Define the integer type to use for internal calculations. 

  // public static functions
  BOOST_CXX14_CONSTEXPR unsigned short (const );
  BOOST_CXX14_CONSTEXPR int (const );
  BOOST_CXX14_CONSTEXPR  (const );
  BOOST_CXX14_CONSTEXPR  
  (const );
  BOOST_CXX14_CONSTEXPR  
  (const );
  BOOST_CXX14_CONSTEXPR  ();
  BOOST_CXX14_CONSTEXPR  ();
  BOOST_CXX14_CONSTEXPR  
  ();
  BOOST_CXX14_CONSTEXPR bool ();
  BOOST_CXX14_CONSTEXPR unsigned short 
  (, );
  BOOST_CXX14_CONSTEXPR  ();
  BOOST_CXX14_CONSTEXPR unsigned short ();
};

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. BOOST_CXX14_CONSTEXPR unsigned short (const  ymd);
  2. BOOST_CXX14_CONSTEXPR int (const  ymd);
  3. BOOST_CXX14_CONSTEXPR  (const  ymd);
  4. BOOST_CXX14_CONSTEXPR  
    (const  ymd);
  5. BOOST_CXX14_CONSTEXPR  
    (const  ymd);
  6. BOOST_CXX14_CONSTEXPR  ();
  7. BOOST_CXX14_CONSTEXPR  ();
  8. BOOST_CXX14_CONSTEXPR  ();
  9. BOOST_CXX14_CONSTEXPR bool ();
  10. BOOST_CXX14_CONSTEXPR unsigned short 
    ( y,  m);
  11. BOOST_CXX14_CONSTEXPR  ();
  12. BOOST_CXX14_CONSTEXPR unsigned short ();

PrevUpHomeNext