Skip to content

//core/io.islandtime/OffsetConversionStrategy

OffsetConversionStrategy

common

enum OffsetConversionStrategy : Enum<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.

Entries

PRESERVE_INSTANT

common

PRESERVE_INSTANT



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

common

PRESERVE_LOCAL_TIME



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

Properties

Name Summary
entries

common


val entries: EnumEntries<OffsetConversionStrategy>

Returns a representation of an immutable list of all enum entries, in the order they're declared.
name

common


val name: String
ordinal

common


val ordinal: Int

Functions

Name Summary
valueOf

common


fun valueOf(value: String): OffsetConversionStrategy

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values

common


fun values(): Array<OffsetConversionStrategy>

Returns an array containing the constants of this enum type, in the order they're declared.