[#BloombergLP-baltzo-DefaultZoneinfoCache]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::DefaultZoneinfoCache
:relfileprefix: ../../
:mrdocs:

This struct provides a namespace for functions that manage and access the default time&hyphen;zone data cache&period;

== Synopsis

Declared in `&lt;baltzo&lowbar;defaultzoneinfocache&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DefaultZoneinfoCache;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baltzo/DefaultZoneinfoCache/defaultCache.adoc[`defaultCache`] 
| Return the default `ZoneinfoCache` object for this process if the optionally specified `cache` is 0, and `cache` otherwise&period; If `cache` is 0, and the default Zoneinfo cache object has not been set &hyphen;&hyphen; either explicitly with a call to `setDefaultCache`, or implicitly through a prior call to this method &hyphen;&hyphen; then initialize a new `ZoneinfoCache` object, set the default cache object to the newly created object, and return its address&period;
| xref:BloombergLP/baltzo/DefaultZoneinfoCache/defaultZoneinfoDataLocation.adoc[`defaultZoneinfoDataLocation`] 
| Return a null terminated (C&hyphen;style) string describing the default file&hyphen;system path of the (expected) root of the Zoneinfo Database time&hyphen;zone information files&period; The returned string will be the current value of the `BDE&lowbar;ZONEINFO&lowbar;ROOT&lowbar;PATH` environment variable, if set, or else one of a (priority ordered) sequence of (platform&hyphen;specific) standard directories, if one of those directories exists and contains a sub&hyphen;set of expected files, and the current directory, otherwise&period; The behavior is undefined if the returned address is dereferenced after a subsequent call to the `putenv` POSIX function to set the `BDE&lowbar;ZONEINFO&lowbar;ROOT&lowbar;PATH` environment variable&period;
| xref:BloombergLP/baltzo/DefaultZoneinfoCache/loadDefaultZoneinfoDataLocations-06.adoc[`loadDefaultZoneinfoDataLocations`] 
| `loadDefaultZoneinfoDataLocations` overloads
| xref:BloombergLP/baltzo/DefaultZoneinfoCache/setDefaultCache.adoc[`setDefaultCache`] 
| Set the address of the default `ZoneinfoCache` object to the specified `cache`&period; Return the address of the default cache object that was set by a previous call to this method, or 0 if no call to this method was previously executed&period; The behavior is undefined unless (1) `cache` remains valid until the last operation is performed on this process&apos;s default cache, or a subsequent call to `setDefaultCache`, and (2) this method is _not_ called from one thread while another thread is attempting to access the default time zone cache instance (i&period;e&period;, this method is _not_ thread&hyphen;safe)&period; Note that this method is intended for use _only_ by the _owner_ of `main` (and for testing purposes) where the caller affirmatively takes responsibility for the behavior of all clients of the default time zone cache&period;
|===



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