BloombergLP::bdlt::PosixDateImpUtil::ymdToSerial

Return the serial date for the given year, month, and day.

Synopsis

Declared in <bdlt_posixdateimputil.h>

static
int
ymdToSerial(
    int year,
    int month,
    int day);

Description

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

Return Value

serial day representation

Parameters

NameDescription
yearcalendar year
monthmonth of year
dayday of month