BloombergLP::bdlt::Date::validateAndSetYearDay

Set this object to have the value represented by the specified year and dayOfYear if they comprise a valid Date value (see isValidYearDay). Return 0 on success, and a non-zero value (with no effect) otherwise.

Synopsis

Declared in <bdlt_date.h>

int
validateAndSetYearDay(
    int year,
    int dayOfYear);

Description

DEPRECATED: Use setYearDayIfValid instead.