#include <bdlt_dateformatter.h>
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.
See bdlt_dateformatter
◆ DateFormatter_Cache()
| bdlt::DateFormatter_Cache::DateFormatter_Cache |
( |
const Date & |
value | ) |
|
|
inline |
Cache a copy the specified value and its year, month, and day fields.
◆ day()
| int bdlt::DateFormatter_Cache::day |
( |
| ) |
const |
|
inline |
Return the cached day field.
◆ dayOfWeek()
| int bdlt::DateFormatter_Cache::dayOfWeek |
( |
| ) |
const |
|
inline |
Call the dayOfWeek accessor of the cached date and return the value.
◆ dayOfYear()
| int bdlt::DateFormatter_Cache::dayOfYear |
( |
| ) |
const |
|
inline |
Call the dayOfYear accessor of the cached date and return the value.
◆ month()
| int bdlt::DateFormatter_Cache::month |
( |
| ) |
const |
|
inline |
Return the cached month field.
◆ year()
| int bdlt::DateFormatter_Cache::year |
( |
| ) |
const |
|
inline |
Return the cached year field.
The documentation for this class was generated from the following file: