![]() |
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 ; // 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();Default constructor constructs with not_a_date_time.
( y, m, d);Main constructor with year, month, day.
( ymd);Constructor from a ymd_type structure.
( rhs);Needed copy constructor.
( rhs);Needed copy constructor.
( sv);Constructor for infinities, not a date, max and min date.
() ;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.