1

Is there any library I can user to convert ISO 3166-1 alpha-3 Country code to its timezone?

Like HKG -> +0800

tom10271
  • 4,222
  • 5
  • 33
  • 62
  • Not every country code is convertable to a time zone, though – Pekka Mar 30 '16 at 07:41
  • For example? Some countries have no timezone? 0.0 btw any method that can at least partially convert will still work. – tom10271 Mar 30 '16 at 08:53
  • 3
    Some countries have *multiple* timezones – Pekka Mar 30 '16 at 08:55
  • I see. Thank you for your information – tom10271 Mar 30 '16 at 08:58
  • Can you add what platform you are working with? There's various libraries, e.g. for PHP: http://php.net/manual/en/function.geoip-time-zone-by-country-and-region.php you'll probably find that Googling `convert country to timezone ` will get you results – Pekka Mar 30 '16 at 09:26
  • For JS, eg. http://stackoverflow.com/questions/19783249/getting-time-zone-when-entering-state-and-country-time-zone-to-use-in-ics-file – Pekka Mar 30 '16 at 09:28

0 Answers0