net.i2p.router.time

## Class Zones

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

-     class Zones
      extends Object

  Country to continent mapping for NTP.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Zones(I2PAppContext ctx)` Reads in the file in the constructor, so hold onto this.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getZone(String country)` Get the NTP zone for a country

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Zones

          public Zones(I2PAppContext ctx)

      Reads in the file in the constructor, so hold onto this.

  - ### Method Detail

    - #### getZone

          public String getZone(String country)

      Get the NTP zone for a country
      Parameters:
        `country` - non-null, two letter code, case-independent
      Returns:
        lower-case NTP zone, e.g. "africa", or null