[#BloombergLP-baltzo-TimeZoneUtil-validateLocalTime-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtil.adoc[TimeZoneUtil]::validateLocalTime
:relfileprefix: ../../../
:mrdocs:

`validateLocalTime` overloads

== Synopses

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

Validate that `localTime` matches its time&hyphen;zone data&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baltzo/TimeZoneUtil/validateLocalTime-01.adoc[validateLocalTime](
    bool* result,
    xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime] const& localTime);
----

[.small]#xref:BloombergLP/baltzo/TimeZoneUtil/validateLocalTime-01.adoc[_» more&period;&period;&period;_]#

Validate that `localTime` matches time&hyphen;zone data for `timeZoneId`&period;


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

[.small]#xref:BloombergLP/baltzo/TimeZoneUtil/validateLocalTime-00.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| receives whether `localTime` is consistent with the data
| *localTime*
| local date&hyphen;time whose offset is validated
| *timeZoneId*
| identifier of the time zone used for validation
|===


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