Interface Time

  • All Known Implementing Classes:
    SystemTime

    public interface Time
    • Method Detail

      • toISODate

        static String toISODate()
      • toISODate

        static String toISODate​(long epochTime)
      • toISODate

        static String toISODate​(long epochTime,
                                ZoneId zoneId)
      • milliseconds

        long milliseconds()
        Returns the current time in milliseconds.
      • nanoseconds

        long nanoseconds()
        Returns the current value of the running JVM's high-resolution time source, in nanoseconds.
      • sleep

        void sleep​(Duration duration)