xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

IsLeap()

Checks if a Date value belongs to a leap year.

Syntax

IsLeap( [<dDate>] ) --> lIsLeapYear

Arguments

<dDate>
Any Date value, except for an empty date, can be passed. The default is the return value of Date().

Return

The function returns .F. (true), when <dDate> falls into a leap year, otherwise .F. (false) is returned.

Info

See also:DaysInMonth(), Quarter(), Year()
Category: CT:DateTime , Date and time
Source:ct\dattime2.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe