DateTime.IsLeapYear

Syntax

IsLeapYear(Year: Integer): Boolean;

Parameters

Year - the year that must be checked.

Description

The IsLeapYear method returns the leap year attribute.

Example

Sub Main;

Var

b, b1: Boolean;

Begin

b := DateTime.IsLeapYear(2000);

b1 := DateTime.IsLeapYear(2001);

End Sub Main;

After executing the example the "b" variable will contain True, and the "b1" variable will contain False.

See also:

DateTime