withZone

fun LocalDateTime.withZone(zoneId: ZoneId = Jvm.timeZone.toZoneId()): ZonedDateTime

Return the date time in a given time zone for a local date time.

Receiver

Local date time to be moved to another time zone.

Return

Received date time at the given zoneId.

Parameters

zoneId

Id of the target zone of the passed local date time.