[#BloombergLP-baltzo-TimeZoneUtilImp-initLocalTime] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtilImp.adoc[TimeZoneUtilImp]::initLocalTime :relfileprefix: ../../../ :mrdocs: Load, into the specified `result`, the local date‐time value ‐‐ including the local date, time, and resolved UTC offset ‐‐ indicated by the specified `localTime` in the time zone indicated by the specified `timeZoneId`, using the specified `dstPolicy` to interpret whether or not `localTime` represents a daylight‐saving time value, and using time zone information supplied by the specified `cache`. Load, into the specified `resultValidity` the value indicating the whether `localTime` is unique, ambiguous but valid, or invalid. Return 0 on success, and a non‐zero value otherwise. A return status of `ErrorCode::k_UNSUPPORTED_ID` indicates that `timeZoneId` is not recognized. The behavior is undefined unless the result of the initialization falls within the supported epoch. == Synopsis Declared in `<baltzo_timezoneutilimp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int initLocalTime( xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz]* result, xref:BloombergLP/baltzo/LocalTimeValidity/Enum.adoc[LocalTimeValidity::Enum]* resultValidity, xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& localTime, char const* timeZoneId, xref:BloombergLP/baltzo/DstPolicy/Enum.adoc[DstPolicy::Enum] dstPolicy, xref:BloombergLP/baltzo/ZoneinfoCache.adoc[ZoneinfoCache]* cache); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#