System.currentTimeMillis(); If I change system time

后端 未结 3 794
一向
一向 2021-01-11 14:51

If I use System.currentTimeMillis() at 00:00 and I get X value.

Then I set the clock back one hour, and after one hour i call System.

3条回答
  •  我在风中等你
    2021-01-11 15:23

    It will return X because System.currentTimeMillis() returns the number of milliseconds since the epoch. That means it will be insynch with your clock and count the number of seconds since January 1, 1970 UTC

提交回复
热议问题