Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: GNUser on March 05, 2020, 12:20:14 PM
-
Devuan has the file /etc/adjtime which specifies whether the hardware clock is set to UTC or to local time. Does TCL have a similar file?
Put another way: My hardware ("BIOS") clock currently keeps UTC time. Suppose I wanted to change it to local time (so that I could dual boot with Windows, for example--not that I'd ever want that). What config file would I have to change in TCL so that my system time (e.g., output of date command) is correct?
-
I found the bootcommand noutc
So I guess there's no file to edit. TCL assumes hardware clock keeps UTC. If it keeps local time, then user needs noutc boot code.
Simple and beautiful, like all things TCL ;D
-
I found a good command named hwclock from BusyBox in TC CorePlus v.11.0
No needed any extension extra! it's pretty to run into the console.
link:
https://git.busybox.net/busybox/tree/util-linux/hwclock.c (https://git.busybox.net/busybox/tree/util-linux/hwclock.c)
If I write in console
hwclock -r
sat Mar 21 20:48:10 2020 0.000000 seconds
-r Show hardware clock time
-s Set system time from hardware clock
-w Set hardware clock from system time
--systz Set in-kernel timezone, correct system time
-u Assume hardware clock is kept in UTC
--localtime Assume hardware clock is kept in local time
-f FILE Use specified device (e.g. /dev/rtc2)
There are a lot of options and parameters to set within.