JCL Help:IsLeapYear@Integer

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Tests whether DateTime represents a leap year.


Pascal

 function IsLeapYear(const Year: Integer): Boolean; overload;
function IsLeapYear(const DateTime: TDateTime): Boolean; overload;


Parameters

Parameters Description
const DateTime: TDateTime The year or DateTime to test.


Return Value

True if DateTime is a leap year or False if it's not.


Description

Tests whether the specified Year or DateTime represents a leap year.


About

Unit

JclDateTime


Donator

Michael Schnell


Notes

The specified DateTime is assumed to be after 1/1/0001 and before 1/1/10000). The overloaded function avoids an erroneous result if the user thinks he calls SysUtils.IsLeapYear


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page