3 ms·
How is time handled on a 32-bit JVM?
by protomyth 11y ago
How is time handled on a 32-bit JVM?
- newobj 11y ago32-bit is with respect to addressable memory. All JVMs still have 64 bit longs and doubles, etc.
- organsnyder 11y agoJava has always stored time values as 64-bit longs representing milliseconds since the Unix epoch. This includes System.currentTimeMillis(), as well as what the java.util.Date class uses internally. I'm assuming that the Java 8 date-time API also does this (or something better—either way, I'm certain that it's y2038-compliant). So, even 32-bit Java is good for another 292 million years or so.