//core/io.islandtime/OffsetTime/copy
copy¶
common
fun copy(time: Time = this.time, offset: UtcOffset = this.offset): OffsetTime
fun copy(hour: Int = this.hour, minute: Int = this.minute, second: Int = this.second, nanosecond: Int = this.nanosecond, offset: UtcOffset = this.offset): OffsetTime
Returns a copy of this time with the values of any individual components replaced by the new values specified.
Throws¶
DateTimeException | if the resulting time or offset is invalid |