copy

Returns a copy of this date-time with the values of any individual components replaced by the new values specified.

fun copy(date: Date, time: Time): DateTime
fun copy(year: Int, dayOfYear: Int, hour: Int, minute: Int, second: Int, nanosecond: Int): DateTime
fun copy(year: Int, month: Month, dayOfMonth: Int, hour: Int, minute: Int, second: Int, nanosecond: Int): DateTime
fun copy(year: Int, monthNumber: Int, dayOfMonth: Int, hour: Int, minute: Int, second: Int, nanosecond: Int): DateTime