Package 

Class ResourceZoneInfoProvider

  • All Implemented Interfaces:
    org.joda.time.tz.Provider

    
    public class ResourceZoneInfoProvider
     implements Provider
                        

    A 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.

    • Method Summary

      Modifier and Type Method Description
      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.
      Set<String> getAvailableIDs() Gets a list of all the available zone ids.
      • Methods inherited from class org.joda.time.tz.Provider

        getAvailableIDs, getZone
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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