java - how do external changes to the system clock affect java util timer?
I've got a bunch of timertasks scheduled on a timer. Some of them are run once, other开发者_开发问答s are fixedrate repeating tasks.
If the system clock is modified externally after things have been scheduled, how are the scheduled tasks affected?
If by "the system clock," you mean the clock that keeps human-time, then that is independent of any timers you are running in your app, unless they in turn depend specifically on the time of day.
And of course if you mean "Time of Day" (like class Date), then the change to the system clock will be reflected in your objects.
精彩评论