core / io.islandtime / DateTime / <init>

<init>

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) <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)
<init>(year: Int, dayOfYear: Int, hour: Int, minute: Int, second: Int, nanosecond: Int)

Creates a DateTime.

Exceptions

DateTimeException - if the date-time is invalid

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) <init>(date: Date, time: Time)

Creates a DateTime by combining a Date and Time.

Parameters

date - the date

time - the time

Constructor
Creates a DateTime by combining a Date and Time.