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 LocalDateTimegetCurrentUtcHour()Returns the UTC date and time at the beginning of the current hour.static InstantgetNow()Returns the UTCInstanttime or creates a new instance if called the first time.static LocalDategetUtcDate()Returns the UTC date.static voidsetNow(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 UTCInstanttime or creates a new instance if called the first time.
-
-