xtd 0.2.0
Loading...
Searching...
No Matches

◆ is_leap_year()

static bool xtd::date_time::is_leap_year ( uint32  year)
static

Returns an indication whether the specified year is a leap year.

Parameters
yearA 4-digit year.
Returns
true if year is a leap year; otherwise, false.
Exceptions
xtd::argument_out_of_range_exceptionyear is less than 1 or greater than 9999.