BloombergLP::bdlt::ProlepticDateImpUtil::ydToMd

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

Synopsis

Declared in <bdlt_prolepticdateimputil.h>

static
void
ydToMd(
    int* month,
    int* day,
    int year,
    int dayOfYear);

Description

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

Parameters

NameDescription
monthdestination for the month of year
daydestination for the day of month
yearcalendar year
dayOfYearday of year