invoke

operator fun invoke(year: Year, month: Month, day: Int, hour: Int = 0, minute: Int = 0, second: Int = 0, milliseconds: Int = 0): DateTime
operator fun invoke(date: Date, time: Time = Time(0.milliseconds)): DateTime
operator fun invoke(year: Int, month: Month, day: Int, hour: Int = 0, minute: Int = 0, second: Int = 0, milliseconds: Int = 0): DateTime
operator fun invoke(year: Int, month: Int, day: Int, hour: Int = 0, minute: Int = 0, second: Int = 0, milliseconds: Int = 0): DateTime

Constructs a new DateTime from date and time information.

This might throw a DateException on invalid dates.


operator fun invoke(unix: Long): DateTime
operator fun invoke(unix: Double): DateTime

Constructs a new DateTime from a unix timestamp in milliseconds.