aqDateTime.IsLeapYear Method

Applies to TestComplete 15.42, last modified on September 08, 2022

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