availabili.tf/backend-flask/utc.py

16 lines
252 B
Python
Raw Normal View History

2024-11-02 12:33:27 -07:00
from datetime import timedelta, tzinfo
delta_zero = timedelta(0)
class UTC(tzinfo):
def utcoffset(self, dt):
return delta_zero
def dst(self, dt):
return delta_zero
def tzname(self, dt):
return "UTC"
utc = UTC()