[#BloombergLP-baltzo-TimeZoneUtil-loadLocalTimePeriod-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtil.adoc[TimeZoneUtil]::loadLocalTimePeriod :relfileprefix: ../../../ :mrdocs: Load local‐time period attributes for `localTime` in `timeZoneId`. == Synopsis Declared in `<baltzo_timezoneutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int loadLocalTimePeriod( xref:BloombergLP/baltzo/LocalTimePeriod.adoc[LocalTimePeriod]* result, xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz] const& localTime, char const* timeZoneId); ---- == Description Load, into the specified `result`, attributes characterizing the specified `localTime` in the time zone indicated by the specified `timeZoneId` (i.e., the offset from UTC, whether daylight‐saving time is in effect and the description of the time zone), as well as the time interval over which those attributes apply. 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. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *result* | receives the local‐time period attributes | *localTime* | local date‐time whose period attributes are loaded | *timeZoneId* | identifier of the time zone for `localTime` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#