How to set easily date, time and time zone in Debian 10?

--

Photo by Roman Synkevych on Unsplash

This mini-story aims to help you set the date, time and time zone in Debian 10 by using the command line : timedatectl

To change the date, use the following command,

DD: Day(1–31), MM: Month(1–12),

$ timedatectl set-time YYYY-MM-DD

To change the time,

hh: hours (0–24), mm: minutes(0–59), ss: secondes(0-59)

$ timedatectl set-time hh-mm-ss

To change the time zone;

$ timedatectl set-timezone region/city

To check your update, use again,

$ timedatectl

kdouibi@khaloud:~$ timedatectl
Local time: mar. 2022–02–01 10:19:10 CET
Universal time: mar. 2022–02–01 09:19:10 UTC
RTC time: mar. 2022–02–01 09:19:10
Time zone: Europe/Paris (CET, +0100)
System clock synchronized: yes

--

--

Khalida Douibi
Khalida Douibi

Written by Khalida Douibi

Sn. Data Scientist. PhD. Biomedical Informatics, Machine learning

No responses yet