Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yen223
on Nov 19, 2023
|
parent
|
context
|
favorite
| on:
datetime.utcnow() is now deprecated
Crucially, that number could represent the number of seconds, or the number of
milliseconds
since Unix epoch (e.g. Date.getTime() in Java)
You kinda have to guess from context that if it's a 10-digit number, it's probably seconds.
theK
on Nov 20, 2023
[–]
Fair point, types should be documented, but them again that's hardly a requirement nowadays, right?
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You kinda have to guess from context that if it's a 10-digit number, it's probably seconds.