Sometimes i don't see the obvious... (== changing the date) - but now (thx to jeb) i also played with changing the date.
I used one command shell window to execute "timeout /T 30 /NOBREAK", and a second one (with admin rights) to change the date (typically after i started timeout).
If you change the date from today to the 19th January 2039 or later, then the counter just stops counting down (on my win10) and waits (as it seems) forever:
Code: Select all
Z:\>timeout /T 30
Gewartet wird 1497278652n. Weiter mit beliebiger Taste...
If you then start "timeout /T 30" again, then the counter is still not counting (30 seconds forever)!
The timeout.exe only finishes when using the value "0".
After changing the date to 18.01.2038 (or earlier), then the counter immediately stops:
Code: Select all
Z:\>timeout /T 30 /NOBREAK
Gewartet wird 2147527477n. Drücken Sie STRG+C, um den Vorgang zu beenden...
If you then restart timeout, the counter sometimes jumps for whatever reason from 30 to ~650163494 (and continues counting):
Code: Select all
Z:\>timeout /T 30 /NOBREAK
Gewartet wird 650163494en. Drücken Sie STRG+C, um den Vorgang zu beenden...
I'm not fully sure, but i suspect that this behaviour may be caused by changing the date dozens of times, so maybe some signals may have occured too late - although, from the systems viewpoint, they are received earlier than sent (or vice versa)
.
But if you use a date when the counter is running (without anything suspicious has happened), then you could chaynge the date to the 1th January 1980 (earliest possible date for my win10), and the counter is also still running:
Code: Select all
Z:\>timeout /T 30 /NOBREAK
Gewartet wird 1831852813n. Drücken Sie STRG+C, um den Vorgang zu beenden...
Sidenotes:
The behaviour is the same without using "/NOBREAK".
I used these date settings in the admin window (date format: DD-MM-YY):
Code: Select all
date 19-01-2038
date 18-01-2038
date 01-01-1980
date 12-06-2017
penpen