已更新为14.04到现在
查看时间和日期状态:
$ timedatectl status
Local time: Sun 2018-07-29 15:26:03 BST
Universal time: Sun 2018-07-29 14:26:03 UTC
RTC time: Sun 2018-07-29 14:26:03
Time zone: Europe/London (BST, +0100)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
查看时区列表:
列出的时区(425)
$ timedatectl list-timezones
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
...
Pacific/Tongatapu
Pacific/Wake
Pacific/Wallis
UTC
将时区设置为UTC:
$ timedatectl set-timezone UTC
查看时间和日期状态:
$ timedatectl status
Local time: Sun 2018-07-29 14:46:27 UTC
Universal time: Sun 2018-07-29 14:46:27 UTC
RTC time: Sun 2018-07-29 14:46:27
Time zone: UTC (UTC, +0000)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no*