BloombergLP::bdlt::PosixDateImpUtil::isValidYearMonthDayNoCache

Return true if the specified year, month, and day represents a valid date value, and false otherwise. Note that valid date values are (as fully defined in the component-level documentation) in the range [ 0001/01/01 .. 9999/12/31 ] (except that [ 1752/09/03 .. 1752/09/13 ] are not valid for historical reasons). Also note that this function is guaranteed not to use any date-cache optimizations.

Synopsis

Declared in <bdlt_posixdateimputil.h>

static
bool
isValidYearMonthDayNoCache(
    int year,
    int month,
    int day);