Walid Saad
Walid Saad

Reputation: 1001

Get timezone of location offline

I want to get the timezone of a location based on its coordinates without connecting to an external api. is that possible in python? I already tried to install pytzwhere without success.

Upvotes: 0

Views: 767

Answers (1)

Nizam Mohamed
Nizam Mohamed

Reputation: 9240

from tzwhere import tzwhere

print tzwhere.tzwhere().tzNameAt(38.897663,-77.036562)

America/New_York

Upvotes: 1

Related Questions