Clock.system

Obtains a clock that returns the current _instant using the best available system clock. !(p) This clock is based on the best available system clock. This may use {@link System#currentTimeMillis()}, or a higher resolution clock if one is available. !(p) Conversion from _instant to date or time uses the specified time-zone. !(p) The returned implementation is immutable, thread-safe and {@code Serializable}.

@param zone the time-zone to use to convert the _instant to date-time, not null @return a clock that uses the best available system clock _in the specified zone, not null

class Clock
static
system

Meta