Timedatectl: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux =Overview= =Get Current Time Zone= <pre> timedatectl status </pre> =Change the Time Zone of the System= List available timezones:...")
 
Line 24: Line 24:
timedatectl set-timezone America/Los_Angeles
timedatectl set-timezone America/Los_Angeles
</pre>
</pre>
=Verify NTP Synchronization=
timedatectl
      Local time: Wed 2018-02-07 09:49:15 PST
  Universal time: Wed 2018-02-07 17:49:15 UTC
        RTC time: Wed 2018-02-07 17:44:36
        Time zone: America/Los_Angeles (PST, -0800)
      '''NTP enabled''': yes
'''NTP synchronized''': yes
  RTC in local TZ: no
      DST active: no
  Last DST change: DST ended at
                  Sun 2017-11-05 01:59:59 PDT
                  Sun 2017-11-05 01:00:00 PST
  Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2018-03-11 01:59:59 PST
                  Sun 2018-03-11 03:00:00 PDT

Revision as of 17:50, 7 February 2018

Internal

Overview

Get Current Time Zone

timedatectl status

Change the Time Zone of the System

List available timezones:

timedatectl list-timezones | grep America

Set the desired one:

timedatectl set-timezone America/Los_Angeles

Verify NTP Synchronization

timedatectl
      Local time: Wed 2018-02-07 09:49:15 PST
  Universal time: Wed 2018-02-07 17:49:15 UTC
        RTC time: Wed 2018-02-07 17:44:36
       Time zone: America/Los_Angeles (PST, -0800)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2017-11-05 01:59:59 PDT
                  Sun 2017-11-05 01:00:00 PST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2018-03-11 01:59:59 PST
                  Sun 2018-03-11 03:00:00 PDT