DateTime

fun DateTime(year: Int, month: Month, day: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0)
fun DateTime(year: Int, monthNumber: Int, day: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0)
fun DateTime(year: Int, dayOfYear: Int, hour: Int, minute: Int, second: Int, nanosecond: Int)

Creates a DateTime.

Throws

if the date-time is invalid

fun DateTime(date: Date, time: Time)

Creates a DateTime by combining a Date and Time.

Parameters

date

the date

time

the time