Commands
bash
sudo timedatectl set-timezone Europe/Moscow # zone: /etc/localtime
sudo timedatectl set-ntp true # enable NTP synchronization
timedatectl timesync-status # server, offset (timesyncd)
timedatectl show-timesync --all # all timesyncd details
sudo timedatectl set-ntp false # before set-time
sudo timedatectl set-time '2026-01-01 12:00:00'
sudo timedatectl set-local-rtc 0 # RTC in UTC (1 is for Windows)
date ; date -u # local / UTC
date +%s # unix time (epoch)
hwclock --show # the hardware clock (RTC)