Scoop API

scoop:scoop.std:0.1.0

OffsetDateTime

class OffsetDateTime

source · line 13
public
public class OffsetDateTime public constructor(
    /**
     * The local date and time component.
     */
    public val dateTime: LocalDateTime,
    /**
     * The fixed offset used to interpret the local component.
     */
    public val offset: UtcOffset) : Equals<OffsetDateTime>, Hash, ToString

A local date-time paired with a fixed UTC offset. Equality compares both components, so equal instants can have unequal offset date-times.

function hash

source · line 42
public
public override fun hash(): Long

Computes a hash consistent with component equality.

property offset

source · line 21
public
public val offset: UtcOffset

get: public read-only

The fixed offset used to interpret the local component.

function toInstant

source · line 26
public
public fun toInstant(): Instant

Converts the local component and offset into an absolute instant.

function toString

source · line 46
public
public override fun toString(): String

Formats this value as ISO local date-time followed by a UTC offset.