[#BloombergLP-bdlt-TimeTz-isValid]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/TimeTz.adoc[TimeTz]::isValid
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `localTime` and the specified time zone `offset` represent a valid `TimeTz` value, and `false` otherwise&period; A `localTime` and `offset` represent a valid `TimeTz` value if `offset` is in the range `( &hyphen;1440 &period;&period; 1440 )`, and `offset` is 0 if `localTime` has the value `24&colon;00&colon;00&period;000`&period; Note that a `true` result from this function does not guarantee that `offset` corresponds to any geographical or historical time zone&period; Also note that a `true` result from this function does not guarantee that `localTime` itself is a valid `Time` object&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;timetz&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isValid(
    xref:BloombergLP/bdlt/Time.adoc[Time] const& localTime,
    int offset);
----


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