BloombergLP::bdlt::TimeFormatter_Cache

Cached Time fields for faster formatting.

Synopsis

Declared in <bdlt_timeformatter.h>

class TimeFormatter_Cache;

Description

This class facilitates faster access to a Time 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
TimeFormatter_Cache [constructor]Cache the fields of the specified value for later formatting.
hour Return the cached hour field.
microsecond Return the cached microsecond field.
millisecond Return the cached millisecond field.
minute Return the cached minute field.
second Return the cached second field.