core / io.islandtime / Time / copy

copy

(iosArm64, iosX64, jvm, macosX64) fun copy(hour: Int = this.hour, minute: Int = this.minute, second: Int = this.second, nanosecond: Int = this.nanosecond): Time

Return a copy of this Time, replacing individual components with new values as desired.

Exceptions

DateTimeException - if the resulting time is invalid