Don't know if this is a problem purely on the Rpi that I am using.
When I use the command as such;
Code: Select all
SetTime "00:00:00" Sleep 5 Print Time Sleep
The device is not connected to the Internet to get time, so I tried the same on a BBB and on it the command was totally ignored.
On the BeagleBone Black I use SerialTime to decide when to reboot.But setting the time to the actual time does work.
On the Rpi I wanted to use it as a Run time as it doesn't have a battery backed RTC.
In both cases using:
Linux-arm , arm v7.a
I guess not many people would use the command to set the time to Zero, so I wonder if this is across other platforms.
EDIT: Debian 11 on Desktop also ignores the command