org.joda.time.format
Class PeriodFormat

java.lang.Object
  extended byorg.joda.time.format.PeriodFormat

public class PeriodFormat
extends Object

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.

Since:
1.0
Author:
Brian S O'Neill
See Also:
ISOPeriodFormat, PeriodFormatterBuilder

Method Summary
static PeriodFormatter getDefault()
          Gets the default PeriodFormatter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

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


Copyright © 2002-2008 Joda.org. All Rights Reserved.