//core/io.islandtime/asZonedDateTime
asZonedDateTime¶
common
fun OffsetDateTime.asZonedDateTime(): ZonedDateTime
Converts this OffsetDateTime to an equivalent ZonedDateTime using a fixed-offset time zone.
This comes with the caveat that a fixed-offset zone lacks knowledge of any region and will not respond to daylight savings time changes. To convert to a region-based zone, use toZonedDateTime instead.
See also¶
toZonedDateTime |