I am using sunrise-sunset api to get sunrise and sunset for day.
>>> url = "https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400&date=2017-07-31"
>>> import urllib2
>>> import json
>>> resp = urllib2.urlopen(url)
>>> data = json.load(resp)
>>> sunriseUtc = data.get("results").get("sunrise")
>>> sunriseUtc
u'5:23:18 AM'
I want to convert this UTC time to local time of that of Long, Lat passed in the URL. i.e. not user local.
Any help would be greatly appreciated.