public class DurationFormatUtility
extends java.lang.Object
DurationFormatUtils| Modifier and Type | Method and Description |
|---|---|
static @NotNull java.lang.String |
formatDuration(long durationMillis,
@NotNull java.lang.String format)
Formats the duration as a string, using the specified format and padding the left hand side of numbers with 0's
|
static @NotNull java.lang.String |
formatDuration(long durationMillis,
@NotNull java.lang.String format,
boolean padWithZeros)
Formats the duration as a string, using the specified format
|
@NotNull
public static @NotNull java.lang.String formatDuration(long durationMillis,
@NotNull
@NotNull java.lang.String format)
durationMillis - the duration to formatformat - the way in which to format the duration@NotNull
public static @NotNull java.lang.String formatDuration(long durationMillis,
@NotNull
@NotNull java.lang.String format,
boolean padWithZeros)
durationMillis - the duration to formatformat - the way in which to format the durationpadWithZeros - whether to pad the left hand side of numbers with 0's