core / io.islandtime / OffsetConversionStrategy

OffsetConversionStrategy

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) enum class OffsetConversionStrategy

Strategy to use when converting a local date-time accompanied by a UtcOffset to a date and time that are valid according to the rules of a TimeZone.

Enum Values

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

PRESERVE_INSTANT

Preserve the instant on the timeline, ignoring the local time.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

PRESERVE_LOCAL_TIME

Preserve the local date and time in the new time zone (if possible), adjusting the offset if needed.

Inheritors

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

PRESERVE_INSTANT

Preserve the instant on the timeline, ignoring the local time.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

PRESERVE_LOCAL_TIME

Preserve the local date and time in the new time zone (if possible), adjusting the offset if needed.