BloombergLP::bdlt::ProlepticDateImpUtil::serialToYd

Load the year-day representation of the specified serial date.

Synopsis

Declared in <bdlt_prolepticdateimputil.h>

static
void
serialToYd(
    int* year,
    int* dayOfYear,
    int serialDay);

Description

Load, into the specified year and dayOfYear, the year-day representation of the date value indicated by the specified serialDay. The behavior is undefined unless isValidSerial(serialDay) returns true.

Parameters

NameDescription
yeardestination for the calendar year
dayOfYeardestination for the day of year
serialDayserial date to convert