Skip to content

//core/io.islandtime/DateTime/DateTime

DateTime

common

constructor(year: Int, month: Month, day: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0)

constructor(year: Int, monthNumber: Int, day: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0)

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

Creates a DateTime.

Throws

DateTimeException if the date-time is invalid

common

constructor(date: Date, time: Time)

Creates a DateTime by combining a Date and Time.

Parameters

common

date the date
time the time