Este contenido no está disponible en el idioma seleccionado.
Chapter 19. Setting time and date in Red Hat Enterprise Linux
The section contains how to set time and date in Red Hat Enterprise Linux:
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.
To change the current time:
timedatectl set-time HH:MM:SS
# timedatectl set-time HH:MM:SS
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace HH with an hour, MM with a minute, and SS with a second, all typed in two-digit form.
To change the current date:
timedatectl set-time YYYY-MM-DD
# timedatectl set-time YYYY-MM-DD
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace YYYY with a four-digit year, MM with a two-digit month, and DD with a two-digit day of the month.
To set the time zone:
First, display the list of available time zones:
timedatectl list-timezones
# timedatectl list-timezones
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Based on the above list, set your desired time zone with this command:
timedatectl set-timezone <your_preferred_timezone>
# timedatectl set-timezone <your_preferred_timezone>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The time change is audited by the operating system. For more information see the Auditing Time Change Events section in the Red Hat Certificate System Planning, Installation, and Deployment Guide.