Java org.apache.commons.lang.time DurationFormatUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang.time DurationFormatUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang.time DurationFormatUtils.

The text is from its open source code.

Method

StringformatDuration(long durationMillis, String format, boolean padWithZeros)

Formats the time gap as a string, using the specified format.

StringformatDuration(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.

StringformatDurationHMS(long durationMillis)

Formats the time gap as a string.

The format used is ISO8601-like: H:m:s.S.

StringformatDurationISO(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.

StringformatDurationWords(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.

StringformatPeriod(long startMillis, long endMillis, String format)

Formats the time gap as a string, using the specified format.

StringformatPeriodISO(long startMillis, long endMillis)

Formats the time gap as a string.

The format used is the ISO8601 period format.