parseIso8601

open fun parseIso8601(@Nullable timeStamp: String): Long

Parses an ISO 8601 timestamp.

Return

The time in milliseconds since Jan. 1, 1970, midnight GMT or -1 if the timestamp was unable to be parsed.

Parameters

timeStamp

The ISO time stamp string.

Throws

if the timestamp was unable to be parsed.


open fun parseIso8601(@NonNull timeStamp: String, defaultValue: Long): Long

Parses an ISO 8601 timestamp.

Return

The time in milliseconds since Jan. 1, 1970, midnight GMT or the default value if the timestamp was unable to be parsed.

Parameters

timeStamp

The ISO time stamp string.

defaultValue

The default value