BloombergLP::bdlt::Date::isValid

Return true if the specified year and dayOfYear represent a valid value for a Date object, and false otherwise. year and dayOfYear represent a valid Date value if they correspond to a valid date as defined by the Unix (POSIX) calendar confined to the year range [1 .. 9999] inclusive. See {Valid Date Values and Their Representations} for details.

Synopsis

Declared in <bdlt_date.h>

static
bool
isValid(
    int year,
    int dayOfYear);

Description

DEPRECATED: Use isValidYearDay instead.