getCurrentSeconds

fun getCurrentSeconds(clock: Clock = Clock.System): Long

Returns the current Unix timestamp in seconds from the given Clock.

Return

Current time in seconds since epoch.

Parameters

clock

The clock to use for time resolution (default is Clock.System).