BloombergLP::bdlt::DateTz::isValid

Return true if the specified localDate and the specified time zone offset represent a valid DateTz value, and false otherwise. A localDate and offset represent a valid DateTz value if 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 localDate itself is a valid Date object.

Synopsis

Declared in <bdlt_datetz.h>

static
bool
isValid(
    Date const& localDate,
    int offset);