![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::gregorian_calendar_base — An implementation of the Gregorian calendar.
// 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 (); };
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.
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.
typename date_int_type_
Underlying type for the date count. Must be an arithmetic type.
gregorian_calendar_base
public static functionsBOOST_CXX14_CONSTEXPR unsigned short (const ymd);
BOOST_CXX14_CONSTEXPR int (const ymd);
BOOST_CXX14_CONSTEXPR (const ymd);
BOOST_CXX14_CONSTEXPR (const ymd);
BOOST_CXX14_CONSTEXPR (const ymd);
BOOST_CXX14_CONSTEXPR ();
BOOST_CXX14_CONSTEXPR ();
BOOST_CXX14_CONSTEXPR ();
BOOST_CXX14_CONSTEXPR bool ();
BOOST_CXX14_CONSTEXPR unsigned short ( y, m);
BOOST_CXX14_CONSTEXPR ();
BOOST_CXX14_CONSTEXPR unsigned short ();