English
The command will fail if an `NTP` service is enabled. See xref:Configuring_the_Date_and_Time.adoc#sect-Configuring_the_Date_and_Time-timedatectl-NTP[Synchronizing the System Clock with a Remote Server] to temporally disable the service.
To change the current time to 11:26 p.m., run the following command as `root`:
~]#{nbsp}timedatectl set-time 23:26:00
By default, the system is configured to use UTC. To configure your system to maintain the clock in the local time, run the [command]#timedatectl# command with the [option]`set-local-rtc` option as `root`:
[command]#timedatectl# [option]`set-local-rtc` _boolean_
To configure your system to maintain the clock in the local time, replace _boolean_ with `yes` (or, alternatively, `y`, `true`, `t`, or `1`). To configure the system to use UTC, replace _boolean_ with `no` (or, alternatively, `n`, `false`, `f`, or `0`). The default option is `no`.
Changing the Current Date
To change the current date, type the following at a shell prompt as `root`:
[command]#timedatectl# [option]`set-time` _YYYY-MM-DD_
Replace _YYYY_ with a four-digit year, _MM_ with a two-digit month, and _DD_ with a two-digit day of the month.
Note that changing the date without specifying the current time results in setting the time to 00:00:00.
To change the current date to 2 June 2013 and keep the current time (11:26 p.m.), run the following command as `root`:
~]#{nbsp}timedatectl set-time "2013-06-02 23:26:00"
Changing the Time Zone
To list all available time zones, type the following at a shell prompt:
[command]#timedatectl# [option]`list-timezones`
To change the currently used time zone, type as `root`:
timedatectl set-timezone pass:quotes[_time_zone_]
Replace _time_zone_ with any of the values listed by the [command]#timedatectl list-timezones# command.
To identify which time zone is closest to your present location, use the [command]#timedatectl# command with the [option]`list-timezones` command line option. For example, to list all available time zones in Europe, type: