BloombergLP::bdlt::PosixDateImpUtil::ydToSerial

Return the serial date for the given year and day-of-year.

Synopsis

Declared in <bdlt_posixdateimputil.h>

static
int
ydToSerial(
    int year,
    int dayOfYear);

Description

Return the serial date representation of the date value indicated by the specified year and dayOfYear. The behavior is undefined unless true == isValidYearDay(year, dayOfYear).

Return Value

serial day representation

Parameters

NameDescription
yearcalendar year
dayOfYearday of year