How can I convert local time (with long & lat) into universal time, is there maybe a library for this? The problem seems be be very difficult to solve. I am searching the interwebs now for two days already but to no avail.
Thx in advance and sorry for in the case if its a stupid question …
I don’t know the answer off the top of my head, but if you google “convert latitude and longitude to timezone” you’ll find a ton of results. Maybe that would be a good place to start?
Thanks so much for planning to share you solution with the forum! It sounds interesting and extremely helpful to share.
If you want a polygon-based solution (rather than a web api, or a pixel-based solution), you could also use something like this set of geometry built from OpenStreetMap:
which is wrapped by this Java library:
However this might be an industrial-strength solution that is overkill for your needs – I believe that it has a relatively big footprint and long load time.