Get the current Instant with millisecond precision from the epoch.
Get the current LocalDate in the provided ZoneId
Get the current LocalDateTime in the provided ZoneId
Get the current LocalDateTime in UTC Zone
Get the current LocalDate in UTC Zone
Get the current LocalTime in the provided ZoneId
Get the current LocalTime in UTC Zone
Get the current Year in the provided ZoneId
Get the current YearMonth in the provided ZoneId
Get the current YearMonth in UTC Zone
Get the current Year in UTC Zone
Get the current ZonedDateTime in the provided ZoneId
Get the current ZonedDateTime in UTC Zone
(Since version ) see corresponding Javadoc for more information.
This trait is a tagless representation of the ability to extract the present time.
This algebra has millisecond precision from the Epoch as the default Java Clock only offers millisecond precision. If you need higher accuracy utilize the methods on Clock directly which use the System tools with higher accuracy.
It is implicitly derived from Clock and Functor and these should be readily available either through IOApp, IO.timer or in testing you can have easy access to TestContext in order to manipulate time for replicatable time for tests