getMillis

open fun getMillis(millis: Long, timeSpan: Long, unit: Int): Long

Return the milliseconds differ time span.

Return

the milliseconds differ time span

Parameters

millis

The milliseconds.

timeSpan

The time span.

unit

The unit of time span.

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

Return the milliseconds differ time span.

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

Return

the milliseconds differ time span

Parameters

time

The formatted time string.

timeSpan

The time span.

unit

The unit of time span.

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

Return the milliseconds differ time span.

Return

the milliseconds differ time span.

Parameters

time

The formatted time string.

format

The format.

timeSpan

The time span.

unit

The unit of time span.

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

Return the milliseconds differ time span.

Return

the milliseconds differ time span.

Parameters

date

The date.

timeSpan

The time span.

unit

The unit of time span.