Class TimeUtils
- java.lang.Object
-
- app.coronawarn.server.services.distribution.assembly.structure.util.TimeUtils
-
public class TimeUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalDateTime
getCurrentUtcHour()
Returns the UTC date and time at the beginning of the current hour.static Instant
getNow()
Returns the UTCInstant
time or creates a new instance if called the first time.static LocalDate
getUtcDate()
Returns the UTC date.static void
setNow(Instant instant)
Injects UTC instant time value.
-
-
-
Method Detail
-
getCurrentUtcHour
public static LocalDateTime getCurrentUtcHour()
Returns the UTC date and time at the beginning of the current hour.
-
getUtcDate
public static LocalDate getUtcDate()
Returns the UTC date.
-
getNow
public static Instant getNow()
Returns the UTCInstant
time or creates a new instance if called the first time.
-
-