[#BloombergLP-bdlt-DatetimeTz-isValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeTz.adoc[DatetimeTz]::isValid :relfileprefix: ../../../ :mrdocs: Return `true` if the specified `localDatetime` and the specified time zone `offset` represent a valid `DatetimeTz` value, and `false` otherwise. A `localDatetime` and `offset` represent a valid `DatetimeTz` value if either `bdlt::Time() == localDatetime.time()` and `0 == offset`, or `bdlt::Time() != localDatetime.time()` and `offset` is in the range `( ‐1440 .. 1440 )`. Note that a `true` result from this function does not guarantee that `offset` corresponds to any geographical or historical time zone. Also note that a `true` result from this function does not guarantee that `localDatetime` itself is a valid `Datetime` object. == Synopsis Declared in `<bdlt_datetimetz.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isValid( xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& localDatetime, int offset); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#