Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anttihaapala
on Oct 9, 2022
|
parent
|
context
|
favorite
| on:
Stop using utcnow and utcfromtimestamp
That's not the code from the article. The code in the article is comparing 2 floats. Though, equality operator would return `False` for comparison `x == x_ts` as well, instead of throwing an exception.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: