core / io.islandtime / DateTime / <init>

<init>

(iosArm64, iosX64, jvm, macosX64) <init>(year: Int, month: Month, day: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0)
<init>(year: Int, monthNumber: Int, day: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0)

Create a DateTime.

Exceptions

DateTimeException - if the date-time is invalid

(iosArm64, iosX64, jvm, macosX64) <init>(date: Date, time: Time)

Create a DateTime by combining a Date and Time.

Parameters

date - the date

time - the time

Constructor
Create a DateTime by combining a Date and Time.