getString

open fun getString(millis: Long, timeSpan: Long, unit: Int): String

Return the formatted time string differ time span.

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

Return

the formatted time string differ time span

Parameters

millis

The milliseconds.

timeSpan

The time span.

unit

The unit of time span.

open fun getString(millis: Long, format: DateFormat, timeSpan: Long, unit: Int): String

Return the formatted time string differ time span.

Return

the formatted time string differ time span

Parameters

millis

The milliseconds.

format

The format.

timeSpan

The time span.

unit

The unit of time span.

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

Return the formatted time string differ time span.

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

Return

the formatted time string differ time span

Parameters

time

The formatted time string.

timeSpan

The time span.

unit

The unit of time span.

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

Return the formatted time string differ time span.

Return

the formatted time string differ time span

Parameters

time

The formatted time string.

format

The format.

timeSpan

The time span.

unit

The unit of time span.

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

Return the formatted time string differ time span.

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

Return

the formatted time string differ time span

Parameters

date

The date.

timeSpan

The time span.

unit

The unit of time span.

open fun getString(date: Date, format: DateFormat, timeSpan: Long, unit: Int): String

Return the formatted time string differ time span.

Return

the formatted time string differ time span

Parameters

date

The date.

format

The format.

timeSpan

The time span.

unit

The unit of time span.