Hacker News new | past | comments | ask | show | jobs | submit login

No if you are manipulating dates do not use time.

Use an integer type denoting days since the start date. See Modified Julian date.

Thus tomorrow is always 1 more than today - if you have times you need leap seconds.




Thanks for the explanation! (edit - this was meant genuinely, not sarcastically)

Slightly sad to have been downvoted, though, just for making a tentative suggestion (note use of question mark) :'(




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: