Provide low‐level support functions for proleptic Gregorian dates.
Synopsis
Declared in <bdlt_prolepticdateimputil.h>
struct ProlepticDateImpUtil;
Description
This struct provides a namespace for a suite of pure functions that perform low‐level operations on date values in a variety of formats: year/month/day, year/day‐of‐year, and serial date. Dates in the range [0001/01/01 .. 9999/12/31] that are valid per the proleptic Gregorian calendar are supported, with serial date 1 (3652059) corresponding to 0001/01/01 (9999/12/31). Note that all of the functions, whether or not implemented in terms of a static cache, are stateless, and, as such, are inherently thread‐safe.
Static Member Functions
Name |
Description |
Return |
|
Return |
|
Return |
|
Return |
|
Return whether |
|
Return the last day of the specified month in the specified year. |
|
Return the number of leap years between |
|
Return the day of the month for the specified serial date. |
|
Return the day of month for |
|
Return the day of the week for the specified serial date. |
|
Return the day of the year for the specified serial date. |
|
Return the month for the specified serial date. |
|
Return the month for |
|
Load the year‐day representation of the specified serial date. |
|
Return the year for the specified serial date. |
|
Return the year for |
|
Load the year/month/day representation of the specified serial date. |
|
Load YMD for |
|
Return the day of the month for the specified year and day‐of‐year. |
|
Return the day of the week for the specified year and day‐of‐year. |
|
Load the month and day for the specified year and day‐of‐year. |
|
Return the month for the specified year and day‐of‐year. |
|
Return the serial date for the specified year and day‐of‐year. |
|
Return the day of the week for the specified year, month, and day. |
|
Return the day of the year for the specified year, month, and day. |
|
Return the serial date for the specified year, month, and day. |
|
Return the serial date for YMD without using the date cache. |
Created with MrDocs