Timedatectl

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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

Configure NTP

timedatectl set-ntp true