Herramientas de usuario

Herramientas del sitio


tutoriales:linux:zonahoraria

Diferencias

Muestra las diferencias entre dos versiones de la página.


tutoriales:linux:zonahoraria [2025/11/03 11:36] (actual) – creado - editor externo 127.0.0.1
Línea 1: Línea 1:
 +====== Zona Horaria ======
 +
 +Ver y cambiar la zona horaria
 +
 +    * [[https://stackoverflow.com/tags/timezone/info|Time Zone != Offset]]
 +
 +===== Órdenes =====
 +  * timedatectl
 +
 +===== Ejemplos =====
 +
 +  * **Ver la zona horaria**
 +
 +<sxh bash>
 +logongas@localhost:/$ timedatectl
 +                      Local time: mar 2020-03-17 12:19:51 CET
 +                  Universal time: mar 2020-03-17 11:19:51 UTC
 +                        RTC time: mar 2020-03-17 11:19:51
 +                       Time zone: Europe/Madrid (CET, +0100)
 +       System clock synchronized: yes
 +systemd-timesyncd.service active: yes
 +                 RTC in local TZ: no
 +</sxh>
 +
 +  * **Listar las zonas horarias**
 +
 +<sxh bash>
 +logongas@localhost:/$ timedatectl list-timezones
 +Europe/Kirov
 +Europe/Lisbon
 +Europe/Ljubljana
 +Europe/London
 +Europe/Luxembourg
 +Europe/Madrid
 +Europe/Malta
 +Europe/Mariehamn
 +Europe/Minsk
 +Europe/Monaco
 +Europe/Moscow
 +Europe/Oslo
 +</sxh>
 +
 +  * **Establecer  la zona horaria**
 +<sxh bash>
 +logongas@localhost:/$ timedatectl set-timezone Europe/Madrid
 +</sxh>
 +