4 ms·
The same format string for "week years" was introduced in Java 7: http://www.juandebravo.com/2015/04/10/java-yyyy-date-format/ http://www.juandebravo.com/2015/0
by rzzzt 8y ago
The same format string for "week years" was introduced in Java 7: http://www.juandebravo.com/2015/04/10/java-yyyy-date-format/ http://www.juandebravo.com/2015/04/10/java-yyyy-date-format/
- mehrdadn 8y agoI get how the year went forward at the end of the previous year in your example, but how in the world in this post's article did it move back? I'm so confused.
- rzzzt 8y agoI think that's the date parser's behavior in Swift (if no additional information is given in the input string, revert to the first day of the week before the first week of the year). The article I linked to displays what the formatter does.
- justjash 8y agoRan into this type of thing last year. Definitely a weird one to debug by looking at things, but easy to figure out when you print out the dates or read documentation.