BloombergLP::bdlt::Date::setYearDay

Set this date to the specified year and dayOfYear.

Synopsis

Declared in <bdlt_date.h>

void
setYearDay(
    int year,
    int dayOfYear);

Description

Set this object to have the value represented by the specified year and dayOfYear. The behavior is undefined unless year and dayOfYear represent a valid Date value (see isValidYearDay).

Parameters

NameDescription
yearyear of the date
dayOfYearday of year of the date