System.Globalization.PersianCalendar.IsLeapDay Method

Determines whether the specified date is a leap day.

Syntax

public override bool IsLeapDay (int year, int month, int day, int era)

Parameters

year
An integer from 1 through 9378 that represents the year.
month
An integer that represents the month and ranges from 1 through 12 if year is not 9378, or 1 through 10 if year is 9378.
day
An integer from 1 through 31 that represents the day.
era
An integer from 0 through 1 that represents the era.

Returns

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

Remarks

A leap day is a day that occurs only in a leap year.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0