org.joda.time.format

Class PeriodFormat


public class PeriodFormat
extends java.lang.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.

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

Constructor Summary

PeriodFormat()
Constructor.

Method Summary

static PeriodFormatter
getDefault()
Gets the default PeriodFormatter.

Constructor Details

PeriodFormat

protected PeriodFormat()
Constructor.
Since:
1.1 (previously private)

Method Details

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 (c) 2001-2006 - Joda.org