This class facilitates faster access to a Date object during printing by batching access to several fields in a single call during construction and caching them for quick access later.
Declared in <bdlt_dateformatter.h>
class DateFormatter_Cache;
| Name | Description |
|---|---|
DateFormatter_Cache [constructor] | Cache a copy the specified value and its year, month, and day fields. |
day | Return the cached day field. |
dayOfWeek | Call the dayOfWeek accessor of the cached date and return the value. |
dayOfYear | Call the dayOfYear accessor of the cached date and return the value. |
month | Return the cached month field. |
year | Return the cached year field. |