Package org.jboss.hal.ballroom
Class Format
- java.lang.Object
-
- org.jboss.hal.ballroom.Format
-
public final class Format extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringhumanReadableDuration(long duration)Formats the elapsed time (in milliseconds) to a human readable format: example 1 minute, 16 seconds.static StringhumanReadableDurationNanoseconds(long duration)Formats the elapsed time (in nanoseconds) to a human readable format: example 1 minute, 16 seconds.static StringhumanReadableFileSize(long size)static StringmediumDateTime(Date date)static StringshortDateTime(Date date)static Stringtime(Date date)static Stringtimestamp(Date date)
-
-
-
Method Detail
-
humanReadableFileSize
public static String humanReadableFileSize(long size)
-
humanReadableDuration
public static String humanReadableDuration(long duration)
Formats the elapsed time (in milliseconds) to a human readable format: example 1 minute, 16 seconds.- Parameters:
duration- in milliseconds- Returns:
- The string representation of the human readable format.
-
humanReadableDurationNanoseconds
public static String humanReadableDurationNanoseconds(long duration)
Formats the elapsed time (in nanoseconds) to a human readable format: example 1 minute, 16 seconds.- Parameters:
duration- in nanoseconds- Returns:
- The string representation of the human readable format.
-
-