3 ms·
> Much like dates and times, correct handling of Unicode is best left to the poor souls stuck dealing with them full time, all the time. Reminds me that date p
by hrktb 15y ago
> Much like dates and times, correct handling of Unicode is best left to the poor souls stuck dealing with them full time, all the time.
Reminds me that date parsing is fucked up in iOs and you actually need to know your shit to get it right when dealing with users around the globe. But I don't see people dealing with this full time.
- chubs 15y agoIn 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.
- klodolph 15y agoGive me a call in 2038.
- pyre 15y ago> 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.