uic-location-timezone
Get timezone information for a given UIC location code (ENEE) based on its country, if the country has a unique timezone.
Installation
npm install uic-location-timezone
Usage
Note that the given UIC location code must be deemed valid by is-uic-location-code
, otherwise an Error will be thrown.
const uicLocationTimezone = // 'Europe/Helsinki' // 'Europe/Athens' // null (yes, Germany has two timezones… https://en.wikipedia.org/wiki/Time_in_Germany#IANA_time_zone_database) // 'Asia/Tokyo' // 'Africa/Cairo' // null (Russia) // throws // throws // throws // throws
Contributing
If you found a bug or want to propose a feature, feel free to visit the issues page.