BloombergLP::bdlt::PosixDateImpUtil::ydToMd

Load month and day from the given year and day-of-year.

Synopsis

Declared in <bdlt_posixdateimputil.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 true == isValidYearDay(year, dayOfYear).

Parameters

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