查看系统时间:#date
设置系统时间:#date -s “2021-07-26 15:33:00”
将系统时间同步到硬件时钟:#hwclock -w
关于hwclock命令用#hwclock --help可以查看说明:
hwclock [-r|--show] [-s|--hctosys] [-w|--systohc]
-r 或 --show 读取并打印硬件时钟(read hardware clock and print result)
-s 或 --hctosys 将硬件时钟同步到系统时钟(set the system time from the hardware clock)
-w 或 --systohc 将系统时钟同步到硬件时钟(set the hardware clock to the current system time)