hwclock
Get/set the hardware clock. toybox
On Linux
Linux
Get/set the hardware clock. Default is hwclock -ruf /dev/rtc0
hwclock [-rswtlu] [-f FILE]
-f FILEUse specified device FILE instead of /dev/rtc0 (--rtc)-lHardware clock uses localtime (--localtime)-rShow hardware clock time (--show)-sSet system time from hardware clock (--hctosys)-tInform kernel of non-UTC clock's timezone so it returns UTC (--systz)-uHardware clock uses UTC (--utc)-wSet hardware clock from system time (--systohc)Linux
Read or change the hardware clock.
Display the current time as reported by the hardware clock
sudo hwclockIdentifyWrite the current software clock time to the hardware clock (sometimes used during system setup)
sudo hwclock --systohcIdentifyWrite the current hardware clock time to the software clock
sudo hwclock --hctosysIdentify