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

That would be defining it as a time span and using the time since start as index.

Which to me is one step away from using the timepoint as the index iteself (zero as start), verus (1 year from zero).

How would you index the time before the first birthday?



Insofar as a timespan is the same as counting years, then yes. If elements in the array are years, then the time before your first birthday doesn't appear.




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

Search: