Will a timer on Android schedule every second job during the jump?

Suppose I have a timer running in Activity on Android (say Android 6.0, if that matters).

Timer timer = new Timer();
timer.schedule(timerTask, 0, 1000);

Will this be done every second at midnight in the evening in the evening?

23:59:58
23:59:59
23:59:60
00:00:00

Or is it not planned to launch anything during the jump?

+4
source share
1 answer

AFAIK, in terms of Android, there is no second jump.

The concept of second jump is provided, for example, by atomic clocks and other official sources of time. Separate Android devices do not have some logic in them to say "well, hey, if this group of scientists required a second transition, we will add one."

— SNTP, NITZ , ; , , , . , , , .

, , Timer, (, 1000 ), , ..

+5

Source: https://habr.com/ru/post/1665415/


All Articles