getDate

open fun getDate(millis: Long, timeSpan: Long, unit: Int): Date

Return the date differ time span.

Return

the date differ time span

Parameters

millis

The milliseconds.

timeSpan

The time span.

unit

The unit of time span.

open fun getDate(time: String, timeSpan: Long, unit: Int): Date

Return the date differ time span.

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

Return

the date differ time span

Parameters

time

The formatted time string.

timeSpan

The time span.

unit

The unit of time span.

open fun getDate(time: String, format: DateFormat, timeSpan: Long, unit: Int): Date

Return the date differ time span.

Return

the date differ time span

Parameters

time

The formatted time string.

format

The format.

timeSpan

The time span.

unit

The unit of time span.

open fun getDate(date: Date, timeSpan: Long, unit: Int): Date

Return the date differ time span.

Return

the date differ time span

Parameters

date

The date.

timeSpan

The time span.

unit

The unit of time span.