Initial my.time.tz provider, infer from location with daily resolution
This commit is contained in:
parent
dc2518b348
commit
1f2e595be9
6 changed files with 202 additions and 6 deletions
9
my/time/tz/main.py
Normal file
9
my/time/tz/main.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue