OffsetDateTime

fun OffsetDateTime(date: Date, time: Time, offset: UtcOffset)

Creates an OffsetDateTime.

Throws

if the offset is invalid

fun OffsetDateTime(year: Int, month: Month, dayOfMonth: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, offset: UtcOffset)
fun OffsetDateTime(year: Int, monthNumber: Int, dayOfMonth: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, offset: UtcOffset)
fun OffsetDateTime(year: Int, dayOfYear: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, offset: UtcOffset)

Creates an OffsetDateTime.

Throws

if the date-time or offset is invalid

fun OffsetDateTime(dateTime: DateTime, offset: UtcOffset)

Creates an OffsetDateTime by combining a DateTime and UtcOffset.

Parameters

dateTime

the local date and time of day

offset

the offset from UTC