Home > Back-end > Some problems about the System. With currentTimeMillis ()
Some problems about the System. With currentTimeMillis ()
Time:09-24
I want to take advantage of the System. The currentTimeMillis () time, directly calculate the hours, minutes and seconds, but minutes and seconds are right, but there is a problem to the hour, To the code below figure O SEC
O minutes
O hours
The first line is the results The second row is my Calendar objects are used to get the standard answer.
CodePudding user response:
Distance from 1970/01/01 08:00:00 currentTimeMillis returns the current time, the number of milliseconds, 24 to plus eight is the current time after you die,
CodePudding user response:
But I see a lot of online articles have pointed out that distance from 1970/01/01 00:00:00 currentTimeMillis returns the current time, the number of milliseconds