[#BloombergLP-baltzo-TimeZoneUtil-initLocalTime-09e2] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtil.adoc[TimeZoneUtil]::initLocalTime :relfileprefix: ../../../ :mrdocs: `initLocalTime` overloads == Synopses Declared in `<baltzo_timezoneutil.h>` 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`. Optionally specify `resultValidity` in which to load the validity of `localTime` as being unique, ambiguous but valid, or invalid. Optionally specify a `dstPolicy` indicating whether or not `localTime` represents a daylight‐saving time value. If `dstPolicy` is unspecified and `localTime` is a unique and valid time in the source time zone, then perform the conversion using that uniquely described time; if `dstPolicy` is unspecified and `localTime` is either ambiguous or invalid, then use the later of the two possible interpretations of `localTime`. The offset from UTC of the time zone is rounded down to minute precision. Return 0 on success, and a non‐zero value with no effect otherwise. A return value of `ErrorCode::k_UNSUPPORTED_ID` indicates that `timeZoneId` was not recognized. The behavior is undefined unless the result of the initialization falls within the supported epoch. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/baltzo/TimeZoneUtil/initLocalTime-0c.adoc[initLocalTime]( xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz]* result, xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& localTime, char const* timeZoneId, xref:BloombergLP/baltzo/DstPolicy/Enum.adoc[DstPolicy::Enum] dstPolicy = DstPolicy::e_UNSPECIFIED); ---- [.small]#xref:BloombergLP/baltzo/TimeZoneUtil/initLocalTime-0c.adoc[_» more..._]# Initialize a `LocalDatetime` result; see the primary `initLocalTime` overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/baltzo/TimeZoneUtil/initLocalTime-05.adoc[initLocalTime]( xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]* result, xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& localTime, char const* timeZoneId, xref:BloombergLP/baltzo/DstPolicy/Enum.adoc[DstPolicy::Enum] dstPolicy = DstPolicy::e_UNSPECIFIED); ---- [.small]#xref:BloombergLP/baltzo/TimeZoneUtil/initLocalTime-05.adoc[_» more..._]# Initialize a `bdlt::DatetimeTz` result and load validity; see the primary `initLocalTime` overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/baltzo/TimeZoneUtil/initLocalTime-0e.adoc[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 = DstPolicy::e_UNSPECIFIED); ---- [.small]#xref:BloombergLP/baltzo/TimeZoneUtil/initLocalTime-0e.adoc[_» more..._]# Initialize a `LocalDatetime` result and load validity; see the primary `initLocalTime` overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/baltzo/TimeZoneUtil/initLocalTime-09e9.adoc[initLocalTime]( xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]* 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 = DstPolicy::e_UNSPECIFIED); ---- [.small]#xref:BloombergLP/baltzo/TimeZoneUtil/initLocalTime-09e9.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#