BloombergLP::bdlt::ProlepticDateImpUtil::serialToYearNoCache

Return the year of the date value indicated by the specified serialDay. The behavior is undefined unless isValidSerial(serialDay) returns true. Note that this function is guaranteed not to use any date-cache optimizations.

Synopsis

Declared in <bdlt_prolepticdateimputil.h>

static
int
serialToYearNoCache(int serialDay);