当我尝试将 epochTime 转换为 LocalDate 时出现此异常,其中:
1) 日期:2017-05-05 10:08:52.0
2)对应纪元:1493959132000
LocalDate lastUpdatedDate = LocalDate.ofEpochDay(1493959132000);
例外 :
java.time.DateTimeException: Invalid value for Year (valid values -999999999 - 999999999): 4090323145
at java.time.temporal.ValueRange.checkValidIntValue(ValueRange.java:330)
at java.time.temporal.ChronoField.checkValidIntValue(ChronoField.java:722)
at java.time.LocalDate.ofEpochDay(LocalDate.java:341)
我了解 java.time.LocalDate 的源代码在https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html#ofEpochDay-long-给出了此异常的事先警告
这实际上意味着什么,什么时候到来?