Setting the time and time zone
Setting the time zone in Shanghai (+8)
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Set the system time2019-11-30 09:55:00
date -s "2019-11-30 09:55:00"
Time View
View the current system time
date
# 以RFC 2822的格式显示时间
date -R
View Calendar
# 当前天的日历
cal
# 查看指定天(2019年11月30)的日历
cal 30 11 2019
# 查看指定月(2019年11月)的日历
cal 11 2019
# 查看指定年(2019年)的日历
cal 2019