2 ms·
As currently defined, datetime.timezone doesn't directly expose the zone offset as a whole and always requires some reference datetime object to compute it, eve
by lifthrasiir 4y ago
As currently defined, datetime.timezone doesn't directly expose the zone offset as a whole and always requires some reference datetime object to compute it, even though the built-in implementation would simply ignore it for now [1]. So it can be surely upgraded.
[1] https://docs.python.org/3/library/datetime.html#datetime.timezone.utcoffset https://docs.python.org/3/library/datetime.html#datetime.tim...