millis2String

open fun millis2String(millis: Long): String

Milliseconds to the formatted time string.

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

Return

the formatted time string

Parameters

millis

The milliseconds.

open fun millis2String(millis: Long, format: DateFormat): String

Milliseconds to the formatted time string.

Return

the formatted time string

Parameters

millis

The milliseconds.

format

The format.