3 ms·
If you mean Joda time, then "xxxx" is also affected (which is correct behavior): public static void main(String[] args) { long now = System.currentTimeMi
by ddlatham 12y ago
If you mean Joda time, then "xxxx" is also affected (which is correct behavior):
public static void main(String[] args) {
long now = System.currentTimeMillis();
System.out.println("YYYY: " + DateTimeFormat.forPattern("YYYY").print(now));
System.out.println("yyyy: " + DateTimeFormat.forPattern("yyyy").print(now));
System.out.println("xxxx: " + DateTimeFormat.forPattern("xxxx").print(now));
}
prints
YYYY: 2014
yyyy: 2014
xxxx: 2015
- Dylan16807 12y agoNobody will use xxxx by accident, so it's not 'affected' by any problem/confusion, it's just there doing what the developer intended.