2016-01-03 15:45:57 +03:00
|
|
|
# timedatectl
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Control the system time and date.
|
2016-01-03 15:45:57 +03:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- To check the current system clock time:
|
2016-01-03 15:45:57 +03:00
|
|
|
|
|
|
|
`timedatectl`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- To set the local time of the system clock directly:
|
2016-01-03 15:45:57 +03:00
|
|
|
|
|
|
|
`timedatectl set-time {{"yyyy-MM-dd hh:mm:ss"}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- To list available timezones:
|
2016-01-03 15:45:57 +03:00
|
|
|
|
|
|
|
`timedatectl list-timezones`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- To change timezones:
|
2016-01-03 15:45:57 +03:00
|
|
|
|
|
|
|
`timedatectl set-timezone {{timezone}}`
|