string2Millis

open fun string2Millis(time: String): Long

Formatted time string to the milliseconds.

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

Return

the milliseconds

Parameters

time

The formatted time string.

open fun string2Millis(time: String, format: DateFormat): Long

Formatted time string to the milliseconds.

Return

the milliseconds

Parameters

time

The formatted time string.

format

The format.