|
Authored by: Anonymous on Thursday, April 26 2012 @ 05:10 PM EDT |
The time rollover problem may not happen if all java is in 64
bit implementations by then.[ Reply to This | Parent | # ]
|
|
Authored by: Anonymous on Thursday, April 26 2012 @ 08:19 PM EDT |
2^31 seconds after 1970 is some time in 2038. It's a problem if you represent a
time a signed 32-bit integer containing the number of seconds elapsed since the
beginning of 1970. The 32-bit integer rolls over from a large positive value to
a large negative value in January, 2038.
But Java does not and has never represented time or dates as 32-bit signed
seconds, so that's not a problem for Java.
Java's System.currentTimeMillis(), and Java's java.util.Date use a 64-bit signed
integer containing the number of milliseconds since the beginning of 1970.
There's no problem for the next 292 million years.[ Reply to This | Parent | # ]
|
|
|
|
|