Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Epoch or Unix Time - Long.MAX_VALUE Human Readable Date [duplicate]

If stored in milliseconds, what is the human readable date for the value dateTime? Epoch is Thursday, 1 January 1970, and I mean long as in Java long.

long dateTime = Long.MAX_VALUE; 

All the online tools seem to crash when I give them a value this large.

like image 246
Marc M. Avatar asked Nov 20 '13 22:11

Marc M.


1 Answers

System.out.println(new java.util.Date(Long.MAX_VALUE).toGMTString());
// output:  17 Aug 292278994 07:12:55 GMT
like image 169
Matt Johnson-Pint Avatar answered Sep 19 '22 23:09

Matt Johnson-Pint