public final class Format extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
humanReadableDuration(long duration)
Formats the elapsed time (in milliseconds) to a human readable format: example 1 minute, 16 seconds.
|
static String |
humanReadableDurationNanoseconds(long duration)
Formats the elapsed time (in nanoseconds) to a human readable format: example 1 minute, 16 seconds.
|
static String |
humanReadableFileSize(long size) |
static String |
mediumDateTime(Date date) |
static String |
shortDateTime(Date date) |
static String |
time(Date date) |
static String |
timestamp(Date date) |
public static String humanReadableFileSize(long size)
public static String humanReadableDuration(long duration)
duration - in millisecondspublic static String humanReadableDurationNanoseconds(long duration)
duration - in nanosecondsCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.