DateTimeParseException at index 0 with ThreeTenABP
问题 I'm trying to parse a time string with ThreeTenABP (because I have to support min SDK 19). I think the string is ISO 8601: 20200117T172638.000Z I get the following exception: org.threeten.bp.format.DateTimeParseException: Text '20200117T172638.000Z' could not be parsed at index 0 My code: Instant instant = Instant.parse("20200117T172638.000Z"); long time = instant.getEpochSecond(); Any help appreciated. Thanks in advance. 回答1: This is a little bit tricky alright. DateTimeFormatter