deltaTo

fun Instant.deltaTo(other: Instant = Clock.System.now()): TimeDelta(source)

Computes the TimeDelta between two Instants. other defaults to now. Example: startInstant.deltaTo() → TimeDelta(days=65, hours=5, ...)