remainingTime

fun remainingTime(currentTime: Long = System.currentTimeMillis()): Long

Get remaining time until expiry.

Return

Remaining milliseconds (negative if expired)

Parameters

currentTime

Current time in milliseconds (defaults to now)