aqDateTime.IsLeapYear Method

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

Use the aqDateTime.IsLeapYear method to check if the specified year is a leap year. A leap year is 366 days long; an ordinary year is 365 days long.

Declaration

aqDateTime.IsLeapYear(Year)

Year [in]    Required    Integer    
Result Boolean

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Year

Specifies the ordinal number of the desired year.

Result Value

True if the specified year is a leap year, and False if the year is an ordinary year.

See Also

Working With Dates
Working With Time
GetYear Method

Highlight search results