copy
fun copy(dateTime: DateTime = this.dateTime, offset: UtcOffset = this.offset): OffsetDateTime
Content copied to clipboard
fun copy(date: Date = this.date, time: Time = this.time, offset: UtcOffset = this.offset): OffsetDateTime
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