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

This `class` facilitates faster access to a `Datetime` object during printing by batching access to several fields per call during construction and caching them for quick access later&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class DatetimeFormatter&lowbar;Cache;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/DatetimeFormatter_Cache/2constructor.adoc[`DatetimeFormatter&lowbar;Cache`]         [.small]#[constructor]#
| Create a format cache initialized with the specified `value`&period;
| xref:BloombergLP/bdlt/DatetimeFormatter_Cache/date.adoc[`date`] 
| Return the date format cache held by this object&period;
| xref:BloombergLP/bdlt/DatetimeFormatter_Cache/time.adoc[`time`] 
| Return the time format cache held by this object&period;
|===



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