BloombergLP::bdlt::PosixDateImpUtil::serialToYd

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

Synopsis

Declared in <bdlt_posixdateimputil.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 true == isValidSerial(serialDay).

Parameters

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