Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2013. The current version is 1.91.0.
boost::gregorian::date — A date type based on gregorian_calendar.
class date { public:   // types   typedef gregorian_calendar::year_type       year_type;         typedef gregorian_calendar::month_type      month_type;        typedef gregorian_calendar::day_type        day_type;          typedef gregorian_calendar::day_of_year_type day_of_year_type;   typedef gregorian_calendar::ymd_type        ymd_type;          typedef gregorian_calendar::date_rep_type   date_rep_type;     typedef gregorian_calendar::date_int_type   date_int_type;     typedef date_duration                       duration_type;     // construct/copy/destruct   date();   date(year_type, month_type, day_type);   date(const ymd_type &);   date(const date_int_type &);   date(date_rep_type);   date(special_values);   // public member functions   date_int_type julian_day() const;   day_of_year_type day_of_year() const;   long modjulian_day() const;   int week_number() const;   date_int_type day_number() const;   date end_of_month() const; };
This class is the primary interface for programming with greogorian dates. The is a lightweight type that can be freely passed by value. All comparison operators are supported.
date public member functionsdate_int_type julian_day() const;
day_of_year_type day_of_year() const;
long modjulian_day() const;
int week_number() const;
date_int_type day_number() const;
date end_of_month() const;
| Copyright © 2001-2005 CrystalClear Software, Inc |