set
Adjusts this clock.
Atomically updates this clock to the value of the following expression:
ZonedDateTime.now(thisClock)
.with(adjuster)
.toInstant()
Content copied to clipboard
Parameters
adjuster
the adjuster to use, not null
See also
Throws
if the adjustment cannot be made
if numeric overflow occurs
Alters the specified field of this clock.
Atomically updates this clock to the value of the following expression:
ZonedDateTime.now(thisClock)
.with(field, newValue)
.toInstant()
Content copied to clipboard
Parameters
field
the field to set, not null
newValue
the new value of the field
See also
Throws
if the field cannot be set
if the field is not supported
if numeric overflow occurs