English
~]${nbsp}date +"%Y-%m-%d %H:%M"
2013-09-16 17:30
~]${nbsp}pass:attributes[{blank}][command]#date#
Mon Sep 16 17:30:24 CEST 2013
~]${nbsp}pass:attributes[{blank}][command]#date --utc#
Mon Sep 16 15:30:34 UTC 2013
~]${nbsp}timedatectl
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
Additional Resources
A _real-time clock_ (*RTC*), commonly referred to as a _hardware clock_, (typically an integrated circuit on the system board) that is completely independent of the current state of the operating system and runs even when the computer is shut down.
As opposed to the manual adjustments described in the previous sections, the [command]#timedatectl# command also allows you to enable automatic synchronization of your system clock with a group of remote servers using the `NTP` protocol. Enabling NTP enables the `chronyd` or `ntpd` service, depending on which of them is installed.
A _system clock_, also known as a _software clock_, that is maintained by the kernel and its initial value is based on the real-time clock. Once the system is booted and the system clock is initialized, the system clock is completely independent of the real-time clock.
At the same time, you can also set the hardware clock to keep the time in either UTC or local time by adding the [option]`--utc` or [option]`--localtime` options, respectively. In this case, `UTC` or `LOCAL` is recorded in the `/etc/adjtime` file.
Besides displaying the date and time, you can manually set the hardware clock to a specific time.
By default, the [command]#date# command displays the local time. To display the time in UTC, run the command with the [option]`--utc` or [option]`-u` command line option:
By default, the [command]#date# command sets the system clock to the local time. To set the system clock in UTC, run the command with the [option]`--utc` or [option]`-u` command line option:
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`:
CEST is a time zone abbreviation and stands for Central European Summer Time.
Changing the Current Date
Changing the Current Time
Changing the Time Zone
[command]#date#
[command]#date# [option]`--set` _HH:MM:SS_
[command]#date# [option]`--set` _HH:MM:SS_ [option]`--utc`