[#BloombergLP-baltzo-TimeZoneUtil-validateLocalTime-00]
= 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 offset from UTC of the specified `localTime` (i&period;e&period;, `localTime&period;offset()`) is consistent with the actual local time offset, as indicated by time zone data, at the UTC time `localTime&period;utcDatetime()` in the time zone indicated by the specified `timeZoneId`, and `false` otherwise&period; Return 0 on success, and a non&hyphen;zero value with `false` loaded into `result` otherwise&period; A return value of `ErrorCode&colon;&colon;k&lowbar;UNSUPPORTED&lowbar;ID` indicates that `timeZoneId` is not recognized&period; Note that this operation verifies that the properties of the provided local time are consistent with the time zone data&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
validateLocalTime(
    bool* result,
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz] const& localTime,
    char const* timeZoneId);
----


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