copy

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

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