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);

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

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

Return Value

  • true if year and dayOfYear form a valid Date value

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

Parameters

Name

Description

year

year of the candidate date

dayOfYear

day of year of the candidate date

month

month of the candidate date

day

day of month of the candidate date

Created with MrDocs