linux timedatectl

Timedatectl

The command allows you to review and change the configuration of the system clock and its settings

List time zones

timedatectl list-timezones

Filter Asia time zones

timedatectl list-timezones |grep Asia

set Calcutta timezone

timedatectl set-timezone Asia/Calcutta

Enable NTP server

Timedatectl set-ntp 1

Disable NTP server

Timedatectl set-ntp 0

Date change

Timedatectl set-time “2023-03-19”