BloombergLP::bdlt::Date::isValid

isValid overloads

Synopses

Declared in <bdlt_date.h>

Return true if year and dayOfYear form a valid Date value.

static
bool
isValid(
    int year,
    int dayOfYear);
» more...

Return true if year, month, and day form a valid Date value.

static
bool
isValid(
    int year,
    int month,
    int day);
» more...

Return Value

  • true if year and dayOfYear form a valid Date value
  • true if year, month, and day form a valid Date value

Parameters

NameDescription
yearyear of the candidate date
dayOfYearday of year of the candidate date
monthmonth of the candidate date
dayday of month of the candidate date