title: java.time.DateTimeException: Invalid value for Year (valid values -999999999 - 999999999)
body: <p>I am getting this exception when I am trying to convert epochTime to LocalDate where:</p>
  
  <p>1) Date : 2017-05-05 10:08:52.0</p>
  
  <p>2) corresponding epoch :1493959132000</p>
  
  <pre><code>LocalDate lastUpdatedDate = LocalDate.ofEpochDay(1493959132000);
  </code></pre>
  
  <p>Exception :</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>I understand that the sourcecode of java.time.LocalDate gives a prior warning of this exception at <a href="https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html#ofEpochDay-long-" rel="nofollow noreferrer">https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html#ofEpochDay-long-</a></p>
  
  <p>What does this actually mean and when does it come?</p>