企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[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 ```