Linux time and clock configuration
Changing timezone on Linux
To change the timezone on linux you can use the command :
timedatectl set-timezone <your_time_zone>
To see all timezones avaliable you can use the command:
timedatectl list-timezones Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/Asmara Africa/Asmera Africa/Bamako Africa/Bangui Africa/Banjul Africa/Bissau . . .
(e.g.)
timedatectl set-timezone America/Sao_Paulo
Manually configure clock on Linux
To manually configure the clock on Linux you can use the command:
date MMDDhhmmYYYY.ss
- MM - month
- DD - day
- hh - hour
- mm - minute
- YYYY - year
- ss - second
(e.g) april 15 2003 06h12PM (18h12)
date 041518122003.00