public class TimezoneConfiguration
extends Object
| Constructor and Description |
|---|
TimezoneConfiguration(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getHarvestName(ZoneId zoneId)
Note: there is no one-to-one correspondence between Harvest timezones and
ZoneIds: this function returns the last one seen in timezones.txt
|
Optional<ZoneId> |
getZoneId(String timezone) |
boolean |
isValidName(String timezone) |
public boolean isValidName(String timezone)
timezone - the name of a timezonepublic Optional<ZoneId> getZoneId(String timezone)
timezone - the name of a timezone as recognized by Harvestpublic Optional<String> getHarvestName(ZoneId zoneId)
zoneId - the ZoneId