BloombergLP::bdlt::ProlepticDateImpUtil::isValidYearMonthDayNoCache

Return whether year/month/day is valid without using the cache.

Synopsis

Declared in <bdlt_prolepticdateimputil.h>

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

Description

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]. Also note that this function is guaranteed not to use any date-cache optimizations.

Return Value

true if valid, and false otherwise

Parameters

NameDescription
yearcalendar year
monthmonth of year
dayday of month