System.Globalization.ThaiBuddhistCalendar.IsLeapDay Method

Determines whether the specified date in the specified era is a leap day.

Syntax

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

Parameters

year
An integer that represents the year.
month
An integer from 1 to 12 that represents the month.
day
An integer from 1 to 31 that represents the day.
era
An integer that represents the era.

Returns

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

Remarks

Leap years in the Thai Buddhist 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.

A leap day is a day that occurs only in a leap year. For example, the 29th day of February is the only leap day.

Requirements

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