toOffsetDateTime

@RequiresApi(value = 26)
fun Instant.toOffsetDateTime(zone: ZoneId = ZoneId.systemDefault()): OffsetDateTime

Obtains an OffsetDateTime instance from Instant

Return

OffsetDateTime An instance

Parameters

zone

A time-zone ID, default is system default