InstantUtils

Functions

Link copied to clipboard
Link copied to clipboard
fun getMinutesBetween(instant1: Instant, instant2: Instant): Long

Returns duration in seconds between instant1 and instant2

Link copied to clipboard
fun getSecondsBetween(instant1: Instant, instant2: Instant): Long

Returns duration in seconds between instant1 and instant2

Link copied to clipboard
fun getUTCInstant(timestamp: String): Instant
Link copied to clipboard

Checks if saved instant does not correspond to the EPOCH (error case)