Dates before January 1st, 1970

后端 未结 3 1703
余生分开走
余生分开走 2020-12-06 16:37

The getTime() fetches the time in millis for a certain Date. Can this be used reliably for dates say in the 18th century. We use the millis and store it in a string variable

3条回答
  •  不思量自难忘°
    2020-12-06 17:10

    Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object

    Better to go for Calendar OR Jodatime

提交回复
热议问题