Package ch.aaap.harvestclient.core
Class TimezoneConfiguration
Object
ch.aaap.harvestclient.core.TimezoneConfiguration
Keeps a list of supported harvest timezones and has methods to converted them
 to ZoneOffsets.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetHarvestName(ZoneId zoneId) Note: there is no one-to-one correspondence between Harvest timezones and ZoneIds: this function returns the last one seen in timezones.txtbooleanisValidName(String timezone)  
- 
Constructor Details
- 
TimezoneConfiguration
 
 - 
 - 
Method Details
- 
isValidName
- Parameters:
 timezone- the name of a timezone- Returns:
 - true if the timezone will be recognized by Harvest
 
 - 
getZoneId
- Parameters:
 timezone- the name of a timezone as recognized by Harvest- Returns:
 - a Zoneoffset if the timezone is valid, Optional.empty() otherwise
 
 - 
getHarvestName
Note: there is no one-to-one correspondence between Harvest timezones and ZoneIds: this function returns the last one seen in timezones.txt- Parameters:
 zoneId- the ZoneId- Returns:
 - the name of an Harvest timezone that maps back to this zoneId
 
 
 -