Hacker Newsnew | past | comments | ask | show | jobs | submit | lstrojny's commentslogin

Could you elaborate what exactly is the bug there?


In my case I had a date that I needed to parse from JSON. It was in this format: 2012-01-21. I parsed it using YYYY-MM-dd. It should have been yyyy-MM-dd for the reasons above.

It is not technically a bug but it real easy to get wrong. Perhaps they should have picked sometimg other than YYYY for week years.


Great library! Here are bindings for PHP: https://github.com/lstrojny/php-ccld


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

Search: