[#BloombergLP-baltzo-TimeZoneUtil-validateLocalTime-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtil.adoc[TimeZoneUtil]::validateLocalTime :relfileprefix: ../../../ :mrdocs: Load, into the specified `result`, `true` if the time zone identifier of the specified `localTime` (i.e., `localTime.timeZoneId()`) is a valid identifier, and the offset from UTC of `localTime` (i.e., `localTime.datetimeTz().offset()`) is consistent with the actual local time offset, as indicated by time zone data, at the UTC time `localTime.datetimeTz().utcDatetime()` in the time zone indicated by `localTime.timeZoneId()`, and `false` otherwise. Return 0 on success, and a non‐zero value with `false` loaded into `result` otherwise. A return value of `ErrorCode::k_UNSUPPORTED_ID` indicates that `timeZoneId` is not recognized. Note that this operation verifies that the properties of the provided local time are consistent with the time zone data. == Synopsis Declared in `<baltzo_timezoneutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int validateLocalTime( bool* result, xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime] const& localTime); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#