Example usage for Java org.apache.commons.lang.time DurationFormatUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
String | formatDuration(long durationMillis, String format, boolean padWithZeros) Formats the time gap as a string, using the specified format. |
String | formatDuration(long durationMillis, String format) Formats the time gap as a string, using the specified format, and padding with zeros and using the default timezone. This method formats durations using the days and lower fields of the format pattern. |
String | formatDurationHMS(long durationMillis) Formats the time gap as a string. The format used is ISO8601-like: H:m:s.S. |
String | formatDurationISO(long durationMillis) Formats the time gap as a string. The format used is the ISO8601 period format. This method formats durations using the days and lower fields of the ISO format pattern, such as P7D6TH5M4.321S. |
String | formatDurationWords(long durationMillis, boolean suppressLeadingZeroElements, 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(long startMillis, long endMillis, String format) Formats the time gap as a string, using the specified format. |
String | formatPeriodISO(long startMillis, long endMillis) Formats the time gap as a string. The format used is the ISO8601 period format. |