# Uses of Class
com.norconex.commons.lang.time.DurationFormatter

Packages that use DurationFormatter
Package
Description
com.norconex.commons.lang.time
Time-related utility classes.

- ## Uses of DurationFormatter in com.norconex.commons.lang.time

  Fields in com.norconex.commons.lang.time declared as DurationFormatter
  Modifier and Type
  Field
  Description
  `static final DurationFormatter`
  DurationFormatter.`COMPACT`
  Example: 5D18h1m23s
  `static final DurationFormatter`
  DurationFormatter.`FULL`
  Example: 5 days 18 hours 1 minute 23 seconds
  Methods in com.norconex.commons.lang.time that return DurationFormatter
  Modifier and Type
  Method
  Description
  `DurationFormatter`
  DurationFormatter.`withHighestUnit(DurationUnit highestUnit)`
  Creates a copy if this formatter with the given highest unit.
  `DurationFormatter`
  DurationFormatter.`withInnerSeparator(String innerSeparator)`
  Creates a copy if this formatter with the specified separator text to be inserted between the numeric and textual values.
  `DurationFormatter`
  DurationFormatter.`withLocale(Locale locale)`
  Creates a copy if this formatter with the given locale.
  `DurationFormatter`
  DurationFormatter.`withLowestUnit(DurationUnit lowestUnit)`
  Creates a copy if this formatter with the given lowest unit.
  `DurationFormatter`
  DurationFormatter.`withNumberFormat(NumberFormat numberFormat)`
  Creates a copy if this formatter with the given number format.
  `DurationFormatter`
  DurationFormatter.`withOuterLastSeparator(String outerLastSeparator)`
  Creates a copy if this formatter with the specified separator text to be inserted between the second to last and last formatter units (number and text pairs).
  `DurationFormatter`
  DurationFormatter.`withOuterSeparator(String outerSeparator)`
  Creates a copy if this formatter with the specified separator text to be inserted between each formatter units (number and text pairs).
  `DurationFormatter`
  DurationFormatter.`withUnitFormatter(DurationUnitFormatter unitFormatter)`
  Creates a copy if this formatter with the given unit formatter.
  `DurationFormatter`
  DurationFormatter.`withUnitPrecision(int unitPrecision)`
  Creates a copy if this formatter with the given unit precision.