Initial my.time.tz provider, infer from location with daily resolution

This commit is contained in:
Dima Gerasimov 2020-10-05 23:21:09 +01:00 committed by karlicoss
parent dc2518b348
commit 1f2e595be9
6 changed files with 202 additions and 6 deletions

9
my/time/tz/main.py Normal file
View file

@ -0,0 +1,9 @@
'''
Timezone data provider
'''
from datetime import datetime
def localize(dt: datetime) -> datetime:
# For now, it's user's reponsibility to check that it actually managed to localize
from . import via_location as L
return L.localize(dt)