| Modifier and Type | Method and Description |
|---|---|
static DateUtil.TimeUnit |
DateUtil.TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateUtil.TimeUnit[] |
DateUtil.TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
DateUtil.formatDuration(long duration,
DateUtil.TimeUnit accuracy)
Formats a duration in ms to the specified accuracy.
|
static String |
DateUtil.formatDuration(long duration,
DateUtil.TimeUnit accuracy,
boolean pluralize,
boolean abbreviated)
Formats a duration in ms to the specified accuracy.
|
static String |
DateUtil.formatElapsed(double elapsed,
boolean pluralize,
boolean abbreviated,
boolean round,
DateUtil.TimeUnit minUnits)
Return elapsed time in ms to displayable format with units.
|
static String |
DateUtil.formatElapsed(double elapsed,
DateUtil.TimeUnit minUnits)
Return elapsed time in ms to displayable format with units.
|
static double |
DateUtil.parseElapsed(String value,
DateUtil.TimeUnit units)
Parses an elapsed time string, returning time in specified units.
|
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.