Skip to content

//core/io.islandtime/OffsetDateTime/OffsetDateTime

OffsetDateTime

common

constructor(date: Date, time: Time, offset: UtcOffset)

Creates an OffsetDateTime.

Throws

DateTimeException if the offset is invalid

common

constructor(year: Int, month: Month, dayOfMonth: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, offset: UtcOffset)

constructor(year: Int, monthNumber: Int, dayOfMonth: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, offset: UtcOffset)

constructor(year: Int, dayOfYear: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, offset: UtcOffset)

Creates an OffsetDateTime.

Throws

DateTimeException if the date-time or offset is invalid

common

constructor(dateTime: DateTime, offset: UtcOffset)

Creates an OffsetDateTime by combining a DateTime and UtcOffset.

Parameters

common

dateTime the local date and time of day
offset the offset from UTC