Example usage for Java org.apache.commons.lang3.time DurationFormatUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
String | formatDuration(final long durationMillis, final String format) Formats the time gap as a string, using the specified format, and padding with zeros. This method formats durations using the days and lower fields of the format pattern. |
String | formatDuration(final long durationMillis, final String format, final boolean padWithZeros) Formats the time gap as a string, using the specified format. |
String | formatDurationHMS(final long durationMillis) Formats the time gap as a string. The format used is ISO 8601-like: HH:mm:ss.SSS . |
String | formatDurationWords(final long durationMillis, final boolean suppressLeadingZeroElements, final boolean suppressTrailingZeroElements) Formats an elapsed time into a plurialization correct string. This method formats durations using the days and lower fields of the format pattern. |
String | formatPeriod(final long startMillis, final long endMillis, final String format) Formats the time gap as a string, using the specified format. |
String | formatPeriod(final long startMillis, final long endMillis, final String format, final boolean padWithZeros, final TimeZone timezone) Formats the time gap as a string, using the specified format. |