BloombergLP::bdlt::ProlepticDateImpUtil::ydToDay

Return the day of the month for the specified year and day-of-year.

Synopsis

Declared in <bdlt_prolepticdateimputil.h>

static
int
ydToDay(
    int year,
    int dayOfYear);

Description

Return the day (of the month) of the date value indicated by the specified year and dayOfYear. The behavior is undefined unless isValidYearDay(year, dayOfYear) returns true.

Return Value

day of month

Parameters

NameDescription
yearcalendar year
dayOfYearday of year