System.Globalization.TaiwanCalendar.IsLeapYear Method

Determines whether the specified year in the specified era is a leap year.

Syntax

public override bool IsLeapYear (int year, int era)

Parameters

year
An integer that represents the year.
era
An integer that represents the era.

Returns

true if the specified year is a leap year; otherwise, false.

Remarks

Leap years in the Taiwan calendar correspond to the same leap years in the Gregorian calendar. A leap year in the Gregorian calendar is defined as a Gregorian year that is evenly divisible by four, except if it is divisible by 100. However, Gregorian years that are divisible by 400 are leap years. A common year has 365 days and a leap year has 366 days.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0