![]() |
Home | Libraries | People | FAQ | More |
boost::gregorian::date — A date type based on gregorian_calendar.
// In header: <boost/date_time/gregorian/greg_date.hpp> class date : public { public: // types typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef date_duration ; // construct/copy/destruct (); (, , ); (); (); (); (); // public member functions () ; () ; () ; () ; () ; date () ; // private member functions (); };
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 functions() ;Return the Julian Day number for the date.
() ;Return the day of year 1..365 or 1..366 (for leap year)
() ;Return the Modified Julian Day number for the date.
() ;Return the ISO 8601 week number 1..53.
() ;Return the day number from the calendar.
date () ;Return the last day of the current month.