Fecha
1 |
date +%Y%m%d -s "20141128" |
Hora
1 |
date +%T -s "16:45:00" |
Grabar los datos en el board
1 |
hwclock --systohc |
Sincronizar el reloj con un Time Servers
Revisar la hora actual
timedatectl nos dice la hora del sistema
1 |
timedatectl status |
Sincronizar la hora del Sistema
The chronyd command lets you check the time by which your system clock is off. If you run a chronyd command without installing the utility first, you will get the following message:
Please install the Chrony utility as follows:
1 |
sudo apt install chrony |
You can then use the following command to see how much your time varies from the internet server. The “System clock wrong by” line in the output indicates this thing.
1 |
sudo chronyd -Q |
You can also synchronize the system time and see the “System clock wrong by” information in one go through the following command:
1 |
sudo chronyd -q |
In the following example, you can see that when I first ran the chronyd -q command, my system was off by 95.9 seconds. After running the command, my internet time was reset and that can be observed when I re-ran the command. This time my system clock is only off by -0.001446 seconds which is an ignorable difference.