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

In all apps i've worked on, passing dates around as 'seconds since 1970' has made date parsing on ios effortless - you may want to try that.


  > passing dates around as 'seconds since 1970' has
  > made date parsing on ios effortless
I'm confused. How does the way that you store dates internally have anything to do with date parsing? If you are accepting dates from users, then you still have to normalize then to unix timestamps.

That also doesn't cover things like:

* Take this date and convert it into a week represented by the last Sunday of the week (i.e. 20110410 represents 20110403-20110409).

* Basically anything involving days of the week.


Give me a call in 2038.




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

Search: