BloombergLP::bdlt::DateFormatter_Cache

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.

Synopsis

Declared in <bdlt_dateformatter.h>

class DateFormatter_Cache;

Member Functions

NameDescription
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.