Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bobbylarrybobby
on Nov 19, 2023
|
parent
|
context
|
favorite
| on:
datetime.utcnow() is now deprecated
But UTC “times” aren't times at all. They're durations (since midnight Jan 1, 1970 in Greenwich), so they don't need a time zone.
Hamuko
on Nov 19, 2023
|
next
[–]
Are you thinking of Unix time?
SpaghettiCthulu
on Nov 19, 2023
|
prev
[–]
Well then maybe they should store the epoch alongside the duration value too! Wouldn't want to get confused thinking it was duration since some other epoch!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: