Why does java.time.Clock
has zone information? From the Clock you only can get an Instant
when calling the instant()
method - which is a time without zone info.
Is the only purpose to have the zone available in the clock to e.g. create a ZonedDateTime like this?
ZonedDateTime.ofInstant(clock().instant(), clock().getZone())
Wouldn't it then make sense to have a method zonedDateTime()
in the Clock class?