Is java.time failing to parse fraction-of-second?
问题 With the first release of Java 8 (b132) on Mac OS X (Mavericks), this code using the new java.time package works: String input = "20111203123456"; DateTimeFormatter formatter = DateTimeFormatter.ofPattern( "yyyyMMddHHmmss"); LocalDateTime localDateTime = LocalDateTime.parse( input, formatter ); Rendering: 2011-12-03T12:34:56 But when I add "SS" for fraction-of-second (and "55" as input), as specified in the DateTimeFormatter class doc, an exception is thrown: java.time.format