Help Center

AfxNumberOfLeapYearsfunction

Returns the number of leap years between two years.

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxNumberOfLeapYears (BYVAL year1 AS LONG, BYVAL years2 AS LONG) AS LONG

Parameters

NameDescription
year1The starting year.
year2The ending year.

Description

Returns the number of leaos years between two years.

Reference

  • Include file AfxTime.inc
  • Defined in AfxNova/AfxTime.inc:527
  • Documented in DateTime/DateTime Procedures.md
  • Topic: Date and Time Procedures