BloombergLP::bdlt::ProlepticDateImpUtil::isLeapYear

Return true if the specified year is a leap year, and false otherwise. The behavior is undefined unless 1 <= year <= 9999.

Synopsis

Declared in <bdlt_prolepticdateimputil.h>

static
bool
isLeapYear(int year);

Return Value

true if year is a leap year, and false otherwise

Parameters

NameDescription
yearcalendar year in [1 .. 9999]