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

It’s a reason why generic durations aren’t often used. Usually you restrict it to be a simple count of seconds or days or whatever is appropriate for the use case, and then you don’t need any special notation, because it’s just a numerical quantity that you store/transmit like any other numerical quantity, its unit being implicit in the schema.


That only works in simple cases, and has been the cause of countless bugs. A duration of 1 day is semantically different from 606024 seconds.




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

Search: