now

fun now(): Instant

Deprecated

Use Clock.System.now()

Replace with

import kotlin.time.Clock
Clock.System.now()

Returns an Instant representing the current moment in time.