copy
fun copy(year: Int = this.year, dayOfYear: Int = this.dayOfYear, hour: Int = this.hour, minute: Int = this.minute, second: Int = this.second, nanosecond: Int = this.nanosecond): DateTime
Content copied to clipboard
Returns a copy of this date-time with the values of any individual components replaced by the new values specified.
Throws
if the resulting date-time is invalid