Value‐semantic type representing a date in the Unix (POSIX) calendar.
Synopsis
Declared in <bdlt_date.h>
class Date;
Description
This class implements a complex‐constrained, value‐semantic type for representing dates according to the Unix (POSIX) calendar. Each object of this class always represents a valid date value in the range [0001JAN01 .. 9999DEC31] inclusive. The interface of this class supports Date values expressed in terms of either year/month/day (the canonical representation) or year/day‐of‐year (an alternate representation). See []Date Values and Their Representations) for details.
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assign to this object the value of the specified |
|
Add |
|
Assign to this object the value read from the specified BDEX stream. |
|
Write this date to the specified output stream. |
|
Return the day of the month in the range |
|
Return the day of the week in the range |
|
Return the day of the year in the range |
|
Load, into the specified |
|
Load, into the specified |
|
Return the month of the year in the range |
|
Return the month of the year in the range |
|
Advance this date by one day. |
|
Advance this date by the specified (signed) number of days. |
|
Move this date earlier by one day. |
|
Move this date earlier by the specified (signed) number of days. |
|
Write this date to the specified output stream in a human‐readable form. |
|
Set this date to the specified |
|
Set this date from |
|
Set this date to the specified |
|
Set this date from Y/M/D if they form a valid value; otherwise do nothing. |
|
Write this date to the specified stream in a single‐line format. |
|
Set this date from |
|
Set this date from Y/M/D if they form a valid value; otherwise do nothing. |
|
Return the year in the range |
Static Member Functions
Name |
Description |
|
|
Return |
|
Return |
|
|
|
Return the most current BDEX streaming version number supported by this class. |
Friends
Name |
Description |
Invoke |
|
Return the signed number of days between two dates. |
|
Return the date that is earlier by |
|
Return the date that is later by |
|
Return the date that is later by |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
Non-Member Functions
Name |
Description |
Advance |
|
Move |
Derived Classes
Name |
Description |
Reference to a |
Created with MrDocs