public class

PeriodFormat

extends Object
java.lang.Object
   ↳ org.joda.time.format.PeriodFormat

Class Overview

Factory that creates instances of PeriodFormatter.

Period formatting is performed by the PeriodFormatter class. Three classes provide factory methods to create formatters, and this is one. The others are ISOPeriodFormat and PeriodFormatterBuilder.

PeriodFormat is thread-safe and immutable, and the formatters it returns are as well.

Summary

Protected Constructors
PeriodFormat()
Constructor.
Public Methods
static PeriodFormatter getDefault()
Gets the default PeriodFormatter.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected PeriodFormat ()

Constructor.

Public Methods

public static PeriodFormatter getDefault ()

Gets the default PeriodFormatter.

This currently returns a word based formatter using English only. Hopefully future release will support localized period formatting.

Returns
  • the formatter