date -R 查看系统时区
date -s “2020-10-23 09:38:00” 设置系统时间
hwclock [-r |–show] //read
[-s |–hctosys] //rtc -> sys
[-w|–systohc] //sys ->rtc
[-t |–systz] //test
[-l |–localtime] //read rtc
[-u |–utc] //utc
[-f |–rtc FILE]
更改系统时区:
在linux文件系统内,/etc/profile 中添加 ,全局生效。
export TZ=“UTC-08:00”