标签: java datetime parsing exception
我正在用预定义的LocalDateTime ISO_INSTANT解析DateTimeFormatter,但是却给了Unable to obtain LocalDateTime from TemporalAccessor异常。
LocalDateTime
ISO_INSTANT
DateTimeFormatter
Unable to obtain LocalDateTime from TemporalAccessor
代码是:
LocalDateTime date = LocalDateTime.parse("2018-01-01T00:00:01Z", ISO_INSTANT);
日期似乎与格式匹配,但不知何故引发了异常。请帮忙。