Skip to content

KBE3D / KBCore / Cesium / isLeapYear

函数: isLeapYear()

isLeapYear(year: number): boolean

Determines if a given date is a leap year.

参数

year

number

The year to be tested.

返回

boolean

True if year is a leap year.

示例

ts
const leapYear = Cesium.isLeapYear(2000); // true

KBE3D @3.0.0 Copyright © 2024-present KBE3D