Scoop API

scoop:scoop.std:0.1.0

LocalDateTime

class LocalDateTime

source · line 14
public
public class LocalDateTime public constructor(
    /**
     * The calendar-date component.
     */
    public val date: LocalDate,
    /**
     * The local-time component.
     */
    public val time: LocalTime) : Equals<LocalDateTime>, Compare<LocalDateTime>, Hash, ToString, Add<Duration, LocalDateTime>, Sub<Duration, LocalDateTime>

An immutable local date and time without a time zone. Conversion to an Instant requires an explicit UTC offset.

function hash

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

Computes a hash consistent with component equality.

property nanosecond

source · line 53
public
public val nanosecond: Int

get: public read-only

The fractional nanosecond within the second in 0..999999999.

constructor constructor

source · line 24
public
constructor(year: Int, monthNumber: Int, dayOfMonth: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0)

function toString

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

Formats this value as ISO local date-time with a T separator.