BloombergLP::bdlt::DateTzFormatter_Cache

Cached DateTz fields for faster formatting.

Synopsis

Declared in <bdlt_datetzformatter.h>

class DateTzFormatter_Cache;

Description

This class facilitates faster access to a DateTz object during printing by batching access to several fields in a single call during construction and caching them for quick access later.

Member Functions

NameDescription
DateTzFormatter_Cache [constructor]Cache a copy of the specified date and offset.
date Return the DateFormatter_Cache held by this object.
offset Return the cached UTC offset in minutes.