Java8的 DateTimeFormatter类有一个方法 ofPattern(String pattern),它允许您从 A-z、 a-z字母的字符串中定义一种格式。这些例子没有说明 y、 年份和 Y、 以星期为基期的年份之间的区别。这是什么?
Symbol Meaning Presentation Examples
------ ------- ------------ -------
y year-of-era year 2004; 04
Y week-based-year year 1996; 96