Class TimeUtils


  • public class TimeUtils
    extends Object
    • 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 UTC Instant time or creates a new instance if called the first time.
      • setNow

        public static void setNow​(Instant instant)
        Injects UTC instant time value.
        Parameters:
        instant - an Instant object.