Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But if there's local DST change between today and tomorrow? Then naive calculation of "Add 1 day and 3 hours to a date." is wrong.




So it’s not fit for calculations. But you can still sort it (as a string) and it will be correct. For a digital personal journal it seems fine.



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

Search: