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

CodePudding user response:

refer to the second floor addHao response:
but I see a lot of online articles have pointed out that currentTimeMillis returns the current time distance from 1970/01/01 00:00:00 the number of milliseconds, with

Because we place in east eight area, also need to master a certain knowledge of geography learning to program ~ ~

This highlights the importance of compulsory education
  • Related