//core/io.islandtime/ZonedDateTime/Companion/fromLocal
fromLocal¶
common
fun fromLocal(dateTime: DateTime, zone: TimeZone, preferredOffset: UtcOffset? = null): ZonedDateTime
Creates a ZonedDateTime from a local date and time, optionally using a preferred offset. If the local date and time fall during an overlap, preferredOffset will be used if it represents one of the two valid offsets. If it is null
or invalid, it will be ignored.