timedatectl 查看当前时区设置

最后更新于:2022-04-02 03:49:17

[TOC] ## timedatectl 查看当前时区设置 查看 ``` [root@localhost system]# timedatectl Local time: Mon 2019-12-30 11:10:51 CST Universal time: Mon 2019-12-30 03:10:51 UTC RTC time: Mon 2019-12-30 03:10:51 Time zone: Asia/Shanghai (CST, +0800) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: n/a ``` ### timedatectl list-timezones 显示所有可用的时区 ``` $ timedatectl list-timezones ``` ### 设置当前时区 ``` $ sudo timedatectl set-timezone America/New_York $ sudo timedatectl set-time YYYY-MM-DD $ sudo timedatectl set-time HH:MM:SS ```
';