The translation is temporarily closed for contributions due to maintenance, please come back later.
Configuring the Date and Time
Modern operating systems distinguish between the following two types of clocks:
Using the timedatectl Command
For information on how to display the current date and time in a custom format, see also xref:Configuring_the_Date_and_Time.adoc#sect-Configuring_the_Date_and_Time-date[Using the date Command].
Displaying the Current Date and Time
Local time: Mon 2013-09-16 19:30:24 CEST
Universal time: Mon 2013-09-16 17:30:24 UTC
Timezone: Europe/Prague (CEST, +0200)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
Sun 2013-03-31 01:59:59 CET
Sun 2013-03-31 03:00:00 CEST
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2013-10-27 02:59:59 CEST
Sun 2013-10-27 02:00:00 CET
[command]#timedatectl# [option]`set-time` _HH:MM:SS_
~]#{nbsp}timedatectl set-time 23:26:00
[command]#timedatectl# [option]`set-time` _YYYY-MM-DD_
~]#{nbsp}timedatectl set-time "2013-06-02 23:26:00"
[command]#timedatectl# [option]`list-timezones`
[command]#timedatectl# [option]`set-ntp` _boolean_
~]#{nbsp}timedatectl set-ntp yes