isLeapYear

open fun isLeapYear(time: String): Boolean

Return whether it is leap year.

The pattern is {@code yyyy-MM-dd HH:mm:ss}.

Return

{@code true}: yes{@code false}: no

Parameters

time

The formatted time string.

open fun isLeapYear(time: String, format: DateFormat): Boolean

Return whether it is leap year.

Return

{@code true}: yes{@code false}: no

Parameters

time

The formatted time string.

format

The format.

open fun isLeapYear(date: Date): Boolean

Return whether it is leap year.

Return

{@code true}: yes{@code false}: no

Parameters

date

The date.

open fun isLeapYear(millis: Long): Boolean

Return whether it is leap year.

Return

{@code true}: yes{@code false}: no

Parameters

millis

The milliseconds.

open fun isLeapYear(year: Int): Boolean

Return whether it is leap year.

Return

{@code true}: yes{@code false}: no

Parameters

year

The year.