跳至主要内容

Date.IsLeapYear

指出這個日期是否在閏年中。

Syntax

Date.IsLeapYear(
dateTime as any
) as logical

Remarks

指出指定的 datetime 值 dateTime 是否在閏年中。

  • dateTime: 要評估的 datedatetimedatetimezone 值。

Examples

Example #1

判斷 #date(2012, 01, 01) 所代表的 2012 年是否為閏年。

Date.IsLeapYear(#date(2012, 01, 01))

Result:

true

Category

Date