Obtains a clock that always returns the same _instant.
!(p)
This clock simply returns the specified _instant.
As such, it is not a clock _in the conventional sense.
The main use case for this is _in testing, where the fixed clock ensures
tests are not dependent on the current clock.
!(p)
The returned implementation is immutable, thread-safe and {@code Serializable}.
@param fixedInstant the _instant to use as the clock, not null
@param zone the time-zone to use to convert the _instant to date-time, not null
@return a clock that always returns the same _instant, not null
Obtains a clock that always returns the same _instant. !(p) This clock simply returns the specified _instant. As such, it is not a clock _in the conventional sense. The main use case for this is _in testing, where the fixed clock ensures tests are not dependent on the current clock. !(p) The returned implementation is immutable, thread-safe and {@code Serializable}.
@param fixedInstant the _instant to use as the clock, not null @param zone the time-zone to use to convert the _instant to date-time, not null @return a clock that always returns the same _instant, not null