You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ATM pd.Timestamp.utcnow() returns a UTC-localized Timestamp object, but pd.Timestamp.utcfromtimestamp() does not. As a result, the following round-trip fails:
unow = pd.Timestamp.utcnow()
result = pd.Timestamp.utcfromtimestamp(unow.timestamp())
assert unow == result # <-- TypeError because unow is tzaware and result is tznaive
Changing this would mean breaking with the stdlib, but our utcnow already breaks with the stdlib (see also #22450)
The text was updated successfully, but these errors were encountered:
+1 I think breaking from the stdlib is fine since we offset rich support for timezones and we do not advertise Timestamp as a direct replacement for datetime.datetime
ATM
pd.Timestamp.utcnow()
returns a UTC-localizedTimestamp
object, butpd.Timestamp.utcfromtimestamp()
does not. As a result, the following round-trip fails:Changing this would mean breaking with the stdlib, but our
utcnow
already breaks with the stdlib (see also #22450)The text was updated successfully, but these errors were encountered: