Class HumanReadableTime


  • public final class HumanReadableTime
    extends Object
    Class to create a human-readable time from a duration
    • Method Detail

      • toHumanReadable

        public static String toHumanReadable​(long duration,
                                             boolean useShortFormat)
        Method to convert a duration into a human-readable time
        Parameters:
        duration -
        useShortFormat -
        Returns:
      • now

        public static String now()
        Method to get the current time as a String
        Returns: