BloombergLP::bdlt::DatetimeTzFormatter_Cache

Cached DatetimeTz fields for faster formatting.

Synopsis

Declared in <bdlt_datetimetzformatter.h>

class DatetimeTzFormatter_Cache;

Description

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

Member Functions

NameDescription
DatetimeTzFormatter_Cache [constructor]Create a DatetimeTz format cache using the specified datetime and offset.
datetime Return the Datetime format cache.
offset Return the UTC offset (in minutes) held by this cache.