-
- All Implemented Interfaces:
-
org.joda.time.tz.Provider
public class ResourceZoneInfoProvider implements ProviderA version of ZoneInfoProvider that loads its data from Android resources. In order to give it access to Resources, you must call JodaTimeAndroid.init() before starting to use Joda-Time.
-
-
Constructor Summary
Constructors Constructor Description ResourceZoneInfoProvider(Context context)
-
Method Summary
Modifier and Type Method Description DateTimeZonegetZone(String id)If an error is thrown while loading zone data, the exception is loggedto system error and null is returned for this and all future requests. Set<String>getAvailableIDs()Gets a list of all the available zone ids. -
-
Constructor Detail
-
ResourceZoneInfoProvider
ResourceZoneInfoProvider(Context context)
-
-
Method Detail
-
getZone
DateTimeZone getZone(String id)
If an error is thrown while loading zone data, the exception is loggedto system error and null is returned for this and all future requests.
- Parameters:
id- the id to load
-
getAvailableIDs
Set<String> getAvailableIDs()
Gets a list of all the available zone ids.
-
-
-
-