BloombergLP::bdlt::TimeTzFormatter_Cache

Cached TimeTz fields for faster formatting.

Synopsis

Declared in <bdlt_timetzformatter.h>

class TimeTzFormatter_Cache;

Description

This class facilitates faster access to a TimeTz 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
TimeTzFormatter_Cache [constructor]Cache a copy of the specified localTime and offset.
offset Return the cached UTC offset in minutes.
time Return the time format cache held by this object.