Unless I'm missing something SimpleDateFormat("YYYY") is busted for days in January. (I.e. it's always the same as "yyyy"). #whatamimissing
-
-
Replying to @peterseibel
For instance, Per http://en.wikipedia.org/wiki/ISO_week_date … 2010-01-01 should be 2009 in YYYY. But no: https://gist.github.com/gigamonkey/75420e4e7c1dc0cc1849 …
4 replies 1 retweet 0 likes -
Replying to @peterseibel
@peterseibel Does SimpleDateFormat claim to support ISO week dates? Can't see "Y" mentinoned in the table; only "y": http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html …1 reply 0 retweets 0 likes -
Replying to @propensive
@propensive It does in Java 7: http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html … And YYYY and yyyy do differ for days at the end of December.1 reply 0 retweets 0 likes -
-
Replying to @propensive
@propensive Not yet. I'm apparently on a very old version of Java 7. Do you see the same behavior?1 reply 0 retweets 0 likes
@peterseibel Just tried it, and it's working correctly (getting 2009) on 1.7.0_51.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.