java.lang.Object
net.i2p.router.time.Zones

class Zonesextends Object
Country to continent mapping for NTP.
  • Constructor Details

    • Zones

      public Zones(I2PAppContext ctx)
      Reads in the file in the constructor, so hold onto this.
      Parameters:
      ctx - the app context used to locate the country-to-continent data file
  • Method Details

    • getZone

      public String getZone(String country)
      NTP zone for a country.
      Parameters:
      country - non-null, two letter code, case-independent
      Returns:
      lower-case NTP zone, e.g. "africa", or null