[#BloombergLP-bdlt-DatetimeTzFormatter_Cache]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::DatetimeTzFormatter&lowbar;Cache
:relfileprefix: ../../
:mrdocs:

Cached `DatetimeTz` fields for faster formatting&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;datetimetzformatter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class DatetimeTzFormatter&lowbar;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&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/DatetimeTzFormatter_Cache/2constructor.adoc[`DatetimeTzFormatter&lowbar;Cache`]         [.small]#[constructor]#
| Create a `DatetimeTz` format cache using the specified `datetime` and `offset`&period;
| xref:BloombergLP/bdlt/DatetimeTzFormatter_Cache/datetime.adoc[`datetime`] 
| Return the `Datetime` format cache&period;
| xref:BloombergLP/bdlt/DatetimeTzFormatter_Cache/offset.adoc[`offset`] 
| Return the UTC offset (in minutes) held by this cache&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
