org.joda.time.tz

Class UTCProvider

Implemented Interfaces:
Provider

public final class UTCProvider
extends java.lang.Object
implements Provider

Simple time zone provider that supports only UTC.

UTCProvider is thread-safe and immutable.

Author:
Brian S O'Neill
Since:
1.0

Constructor Summary

UTCProvider()
Constructor.

Method Summary

Set
getAvailableIDs()
Returns a singleton collection containing only "UTC".
DateTimeZone
getZone(String id)
Returns UTC for "UTC", null otherwise.

Constructor Details

UTCProvider

public UTCProvider()
Constructor.

Method Details

getAvailableIDs

public Set getAvailableIDs()
Returns a singleton collection containing only "UTC".
Specified by:
getAvailableIDs in interface Provider

getZone

public DateTimeZone getZone(String id)
Returns UTC for "UTC", null otherwise.
Specified by:
getZone in interface Provider

Copyright (c) 2001-2006 - Joda.org