Synopsis
class date : public {
public:
typedef ;
typedef ;
typedef ;
typedef ;
typedef ;
typedef ;
typedef ;
typedef date_duration ;
();
(, , );
();
();
();
();
() ;
() ;
() ;
() ;
() ;
() ;
();
};
Description
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
construct/copy/destruct
-
();
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.
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.
-
() ;
Return the last day of the current month.
date private member functions