CPowerTime.IsLeapYearmethod
Determines if a given year is a leap year or not.
Syntax
FUNCTION IsLeapYear (BYVAL nYear AS LONG = 0) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
nYear | A four digit year. |
Return value
TRUE or FALSE.
Description
Determines if a given year is a leap year or not.
A leap year is defined as all years divisible by 4, except for years divisible by 100 that are not also divisible by 400. Years divisible by 400 are leap years. 2000 is a leap year. 1900 is not a leap year.
Reference
- Defined in AfxNova/CPowerTime.inc:419
- Documented in DateTime/CPowerTime Class.md
- Topic: CPowerTime Class