3 ms·
On my machine, a naive timestamp from utcnow() and a utc timezone aware datetime object from datetime.now(tz=ZoneInfo('utc')) produces the same timestamp. date
by wodenokoto 3y ago
On my machine, a naive timestamp from utcnow() and a utc timezone aware datetime object from datetime.now(tz=ZoneInfo('utc')) produces the same timestamp.
datetime.now() does not return utc time (but does return a naive datetime object)
- ak217 3y agoOK, but that's not relevant to the scenario that I described.
- wodenokoto 3y agoHow is that not exactly the scenario?