DateTime.IsLeapYear

Syntax

IsLeapYear(Year: Integer): Boolean;

Parameters

Year. The year that should be checked.

Description

The IsLeapYear method returns the leap year attribute.

Example

Sub UserProc;
Var
    b, b1: Boolean;
Begin
    b := DateTime.IsLeapYear(2000);
    b1 := DateTime.IsLeapYear(2001);
End Sub UserProc;

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

See also:

DateTime