Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Time & NTP

Direct answer

Time on Linux has two parts: the system clock (kept by the kernel, synchronised by NTP via chrony or systemd-timesyncd) and the hardware RTC. Time zones only change how time is displayed.

When to use this

Use it when clocks are wrong, logs do not line up, certificates fail as "not yet valid" or Kerberos logins fail.

First 30 seconds

1. timedatectl — "System clock synchronized: yes"?

2. No → chronyc sources -v: any reachable source?

3. Offset: chronyc tracking.

4. Time zone right? timedatectl set-timezone <zone>.

5. RTC in UTC: timedatectl | grep 'RTC in local TZ' = no.

Operational verification

NTP sources reachable → chrony selects a source → system clock disciplined → RTC updated → time zone applied for display

Evidence · next step

For Time & NTP, continue with the first unproven Topic check: Capture wall-clock time with zone/offset, UTC, monotonic/uptime context, boot time and incident timestamp before changing time services. If that boundary is healthy, advance to the adjacent check: Identify RTC/virtualization source, active time-sync daemon, configured and selected sources, stratum/reach/offset/delay/jitter and leap/synchronization state. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandtimedatectl
Scope / prerequisiteUse it when clocks are wrong, logs do not line up, certificates fail as "not yet valid" or Kerberos logins fail.
Reference · 2
What next?3 suggested next steps
Child topics (this level)5
Catalog command links2
Evidence1
On this pageJump to a specific section
Linux command reference

Primary Commands

Configuration and operational commands for this Topic.

timedatectlReference
timedatectl

Inspect or change system time, timezone, RTC and systemd-timesyncd-related settings.

Use when: Primary lookup intent: configure. Use timedatectl when the lookup goal is to inspect or change system time, timezone, RTC and systemd-timesyncd-related settings. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Post-change verification for timedatectl: Verify synchronized time/offset and rerun time-sensitive authentication, database or distributed workloads. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. timedatectl is documented as an operational lookup primitive under Time & NTP. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · service
chronycReference
chronyc

Inspect or control a chronyd time-synchronization daemon through its command interface.

Use when: Primary lookup intent: configure. Use chronyc when the lookup goal is to inspect or control a chronyd time-synchronization daemon through its command interface. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Post-change verification for chronyc: Confirm synchronization/offset stability and rerun the time-sensitive workload. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. chronyc is documented as an operational lookup primitive under Time & NTP. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · service
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

hardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlation

Healthy evidence: trusted sources are reachable/selected, offset and discipline are stable for requirements, timezone presentation is intentional and the original time-sensitive workload correlates correctly.

Step 2 Commands Verify boundary
timedatectl
chronyc tracking
chronyc sources -v
Step 3 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Capture wall-clock time with zone/offset, UTC, monotonic/uptime context, boot time and incident timestamp before changing time services.

  • Identify RTC/virtualization source, active time-sync daemon, configured and selected sources, stratum/reach/offset/delay/jitter and leap/synchronization state.
  • Correlate journal/application timestamps with explicit timezone conversion and look for clock steps, suspend/resume, VM migration or source changes.
  • Change one demonstrated cause, allow discipline to stabilize where appropriate, then verify clock/source state and repeat the original scheduling/authentication/log-correlation workload.

Verification chain. hardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlation

Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: multiple daemons compete, host/guest clock sources fight, timezone is mistaken for clock error, sources are unreachable/falsetickers, large step events occur, or applications show different timestamp assumptions.

Step 5 Common mistakes Narrow the fault
  • Running both chronyd and ntpd.
  • Wrong time zone instead of wrong time.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Keep every server on NTP and the RTC in UTC. A few seconds of offset breaks Kerberos (5-minute limit) and confuses log correlation; a large offset breaks TLS certificates.

Key checks
  • timedatectl — time, time zone and sync status
  • chronyc tracking — offset and source (chrony)
  • chronyc sources -v — time sources and reachability
  • date -u — UTC time
ReferenceWhat it is1 section · depth on demand

Core model

Record both wall-clock and monotonic context, timezone, boot time and virtualization/RTC assumptions. Identify the active synchronization authority, sources and current offset/frequency/leap state, then correlate application/log timestamps using explicit zones. Treat synchronization status as bounded evidence: clock accuracy, timezone display and application timestamp semantics are different boundaries.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Time is verified only when the relevant clock basis, timezone and synchronization source/state are confirmed for the incident interval and the original time-sensitive workload behaves correctly.

In depth

Time on a Linux system: clocks, zones and synchronisation

A Linux system keeps three related things:

  • the system clock in the kernel, which counts in UTC;
  • the hardware clock (RTC) on the motherboard;
  • the time zone, used only to display local time.

The timedatectl(1) manual page shows all three in its status output, together with whether network time synchronisation is active. It strongly recommends keeping the RTC in UTC.

timedatectl commands (manual)

CommandPurpose
timedatectl / statusLocal time, UTC, RTC, time zone, sync state
set-timezone Europe/CopenhagenChange the zone (updates /etc/localtime)
list-timezonesAvailable zones
set-ntp trueEnable network time synchronisation
set-time "2026-11-28 14:00:00"Set the clock (only with NTP disabled)
set-local-rtc 0Keep the RTC in UTC
timesync-statusStatus of systemd-timesyncd

Which time service is running

ServiceDistributionsRole
systemd-timesyncdUbuntu, Debian (minimal installs)A simple client
chronydRHEL family, many othersA full client and server
ntpd / ntpsecOlder or special setupsA classic NTP implementation

Only one should run. Two time daemons fighting over the clock cause steps and drift.

Why accurate time matters

AreaEffect of wrong time
TLSCertificates appear expired or not yet valid
Kerberos and Active DirectoryLogins fail beyond 5 minutes of skew
LogsEvents across hosts can't be correlated
Clusters and databasesReplication and leases misbehave
TOTPOne-time passwords are rejected
host$ timedatectl
               Local time: Sat 2026-11-28 14:35:12 CET
           Universal time: Sat 2026-11-28 13:35:12 UTC
                 RTC time: Sat 2026-11-28 13:35:12
                Time zone: Europe/Copenhagen (CET, +0100)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
host$ systemctl is-active chronyd systemd-timesyncd ntpd 2>/dev/null
host$ chronyc tracking | grep -E "Reference|System time|Leap"
host$ sudo hwclock --show

Reading the status

"System clock synchronized: yes" means the time service has locked on to a source. "RTC in local TZ: no" is the recommended UTC setting. If synchronisation shows "no" for a long time, check which service is active and whether it can reach its servers on UDP 123.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Time & NTP is part of Time & NTP. Linux Time & NTP is the operational reference for separating hardware/virtual clock sources, kernel timekeeping, wall-clock UTC, timezone presentation, synchronization discipline and application timestamps before deciding whether a time-related symptom is fixed.

Topic-specific state model. Linux Time & NTP is the operational reference for separating hardware/virtual clock sources, kernel timekeeping, wall-clock UTC, timezone presentation, synchronization discipline and application timestamps before deciding whether a time-related symptom is fixed.

Interpretation rule. - Correct displayed local time ≠ the system clock is synchronized to a trusted source.

  • NTP synchronized ≠ timezone is correct; NTP disciplines UTC-like system time, while timezone controls presentation/calendar interpretation.
  • Small current offset ≠ the clock was correct during the incident; history and step/slew events matter.
  • Clock synchronized ≠ every application uses the same timezone or timestamp source.

Quick reference

Time on Linux: the hardware RTC (should be UTC), the system clock (kernel), time zone for display, and NTP synchronisation (chrony or systemd-timesyncd).

timedatectl
timedatectl show-timesync --all
hwclock --show; hwclock --systohc
chronyc tracking

Correct time matters for TLS certificates, Kerberos, logs, distributed databases and TOTP — monitor offset, not just whether a daemon runs.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. Time is verified only when the relevant clock basis, timezone and synchronization source/state are confirmed for the incident interval and the original time-sensitive workload behaves correctly.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Time & NTP owns Linux clock/timezone/synchronization behavior. Scheduling consumes the clock; Security protocols may depend on skew limits; applications own their own timestamp parsing/presentation semantics.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Time & NTP. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://chrony-project.org/documentation.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
linux time ntplinux clock synchronizationtime sync linuxlinux timezone ntp
Embedded reference data

Quick lookup tables

Time & NTP operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Time & NTP.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux Time & NTP is the operational reference for separating hardware/virtual clock sources, kernel timekeeping, wall-clock UTC, timezone presentation, synchronization discipline and application timestamps before deciding whether a time-related symptom is fixed.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin exact symptom + clock/trigger time → identify authoritative scheduler or time daemon → read back effective configuration/runtime state → reproduce or observe the expected event/source measurement → correlate identity/environment/offset/status with logs → change one demonstrated cause → read back stable state → repeat original scheduled or time-sensitive workload + regression check.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainhardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlationTrace requested/configured state through effective state to the observed workload result.
Failure boundaryTime is verified only when the relevant clock basis, timezone and synchronization source/state are proven for the incident interval and the original time-sensitive workload behaves correctly.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux scheduling/time evidence can establish this proof path: hardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlationUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host, clock/timezone, scheduler or time-daemon instance, identity/environment, source, trigger/measurement interval or workload scope. Time is verified only when the relevant clock basis, timezone and synchronization source/state are proven for the incident interval and the original time-sensitive workload behaves correctly.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven scheduling/time boundary: preserve the original timing and execution/source context, capture the adjacent scheduler/process or clock/source state, change only the demonstrated cause, then repeat the original scheduled or time-sensitive workload and regression checks.Continue to the next unresolved boundary while preserving the original test condition.

Time & NTP · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryTime & NTP
Topic pathTime & NTP
Runtime stateLinux Time & NTP is the operational reference for separating hardware/virtual clock sources, kernel timekeeping, wall-clock UTC, timezone presentation, synchronization discipline and application timestamps before deciding whether a time-related symptom is fixed.
Fast checks- Capture wall-clock time with zone/offset, UTC, monotonic/uptime context, boot time and incident timestamp before changing time services. - Identify RTC/virtualization source, active time-sync daemon, configured and selected sources, stratum/reach/offset/delay/jitter and leap/synchronization state. - Correlate journal/application timestamps with explicit timezone conversion and look for clock steps, suspend/resume, VM migration or source changes. - Change one demonstrated cause, allow discipline to stabilize where appropriate, then verify clock/source state and repeat the original scheduling/authentication/log-correlation workload.
Verification chainhardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlation Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryTime is verified only when the relevant clock basis, timezone and synchronization source/state are proven for the incident interval and the original time-sensitive workload behaves correctly. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?