There is an excellent answer on how to get TimeZone given a Latitude and Longitude. There is however a comment in the answer as
One thing I've noticed is the lack of any UTC timestamp requirement when determining the time zone. For instance, a long/lat in London is not enough to determine weather the time zone is GMT or BST (British Summer Time / daylight savings). So surely to determine the correct time zone you need lat, long and a UTC timestamp.
Also, there is a wiki, which talks that Java has it's own database for Timezones, which is documented on Oracle website
I am wondering that given a UTC Datetime
, Latitude
and Longitude
, is there a way to leverage the Java's timezone database to get the timezone instead of making API calls?
Any resources/examples?