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

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

Introduction

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

The text is from its open source code.

Method

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

StringformatDuration(final long durationMillis, final String format, final boolean padWithZeros)

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

StringformatDurationHMS(final long durationMillis)

Formats the time gap as a string.

The format used is ISO 8601-like: HH:mm:ss.SSS .

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

StringformatPeriod(final long startMillis, final long endMillis, final String format)

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

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