System.SysUtils.IsLeapYear
Delphi
function IsLeapYear(Year: Word): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsLeapYear(System::Word Year);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Indicates whether a specified year is a leap year.
Call IsLeapYear to determine whether the year specified by the Year parameter is a leap year. Year specifies the calendar year.
Use YearOf to obtain the value of Year for IsLeapYear from a TDateTime value.
See Also
Code Examples