Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

IsLeapYear

func IsLeapYear(year: int) -> Result<bool, InvalidDateError>

Declaring type: Calendar
Module: System.Time
Assembly: System.Runtime.dll
Source file: Calendar.rvn

Returns whether this is a leap year.

Parameters

Name Type Description
year Int32 Calendar year within MinYear–MaxYear.

Return value

Result<Boolean, InvalidDateError>

Ok(value), or InvalidDateError outside the supported years.