copy

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

fun copy(time: Time, offset: UtcOffset): OffsetTime
fun copy(hour: Int, minute: Int, second: Int, nanosecond: Int, offset: UtcOffset): OffsetTime