此内容没有您所选择的语言版本。

Chapter 15. Setting Time and Date in Red Hat Enterprise Linux 7.6


The section contains how to set time and date in Red Hat Enterprise Linux 7.6.
The system time is always kept in Coordinated Universal Time (UTC) and converted in applications to local time as needed. Local time is the actual time in your current time zone, taking into account daylight saving time (DST).
The timedatectl utility is distributed as part of the systemd system and service manager and allows you to review and change the configuration of the system clock.

Changing the Current Time

timedatectl set-time HH:MM:SS
Copy to Clipboard Toggle word wrap
Replace HH with an hour, MM with a minute, and SS with a second, all typed in two-digit form.

Changing the Current Date

timedatectl set-time YYYY-MM-DD
Copy to Clipboard Toggle word wrap
Replace YYYY with a four-digit year, MM with a two-digit month, and DD with a two-digit day of the month.
The time change is audited by the operating system. For more information see 13.2.1.3. Auditing Time Change Events in Red Hat Certificate System's Planning, Installation, and Deployment Guide.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat