Skip to content

com.hypercubetools.timeslip / TimeSlip / withZone

withZone

fun withZone(newZone:ZoneId):Clock

Returns a copy of this clock with a different time-zone.

Parameters

newZone - the time-zone to change to

Exceptions

IllegalStateException - This clock doesn't have any more times to provide.

Return a clock based on this clock with the specified time-zone