Returns a mock implementation of the
java.time.Clock. The mock supports
advance-clock! operation which allows to move the time in the clock, e.g.:
(let [clock (mock-clock 0 "UTC")]
(is (= (value clock) 0))
(is (= (instant) (instant 0)))
(advance-clock! clock (j/millis 1))
(is (= (value clock) 1))
(is (= (instant) (instant 1)))))
You can move the clock back via advancing by a negative temporal amount.
Creates a clock at epoch in the default timezone when called without arguments.