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
    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.

  • To change 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.

  • To set the time zone:

    1. First, display the list of available time zones:

      # timedatectl list-timezones
      Copy to Clipboard Toggle word wrap
    2. Based on the above list, set your desired time zone with this command:

      # timedatectl set-timezone <your_preferred_timezone>
      Copy to Clipboard Toggle word wrap

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.

Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat