...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::gregorian::greg_month — Wrapper class to represent months in gregorian based calendar.
// In header: <boost/date_time/gregorian/greg_month.hpp> class greg_month : public greg_month_rep { public: // types typedef date_time::months_of_year month_enum; // construct/copy/destruct greg_month(month_enum); greg_month(value_type); // public member functions BOOST_CXX14_CONSTEXPR operator value_type() const; BOOST_CXX14_CONSTEXPR value_type as_number() const; BOOST_CXX14_CONSTEXPR month_enum as_enum() const; const char * as_short_string() const; const char * as_long_string() const; const wchar_t * as_short_wstring() const; const wchar_t * as_long_wstring() const; const char * as_short_string(char) const; const char * as_long_string(char) const; const wchar_t * as_short_string(wchar_t) const; const wchar_t * as_long_string(wchar_t) const; };
greg_month
public member functionsBOOST_CXX14_CONSTEXPR operator value_type() const;Convert the value back to a short.
BOOST_CXX14_CONSTEXPR value_type as_number() const;Returns month as number from 1 to 12.
BOOST_CXX14_CONSTEXPR month_enum as_enum() const;
const char * as_short_string() const;Returns 3 char english string for the month ex: Jan, Feb, Mar, Apr.
const char * as_long_string() const;Returns full name of month as string in english ex: January, February.
const wchar_t * as_short_wstring() const;Returns 3 wchar_t english string for the month ex: Jan, Feb, Mar, Apr.
const wchar_t * as_long_wstring() const;Returns full name of month as wchar_t string in english ex: January, February.
const char * as_short_string(char) const;
const char * as_long_string(char) const;
const wchar_t * as_short_string(wchar_t) const;
const wchar_t * as_long_string(wchar_t) const;