isToday

open fun isToday(time: String): Boolean

Return whether it is today.

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 isToday(time: String, format: DateFormat): Boolean

Return whether it is today.

Return

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

Parameters

time

The formatted time string.

format

The format.

open fun isToday(date: Date): Boolean

Return whether it is today.

Return

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

Parameters

date

The date.

open fun isToday(millis: Long): Boolean

Return whether it is today.

Return

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

Parameters

millis

The milliseconds.