Zpět na blog

UTC vs GMT: What's the Difference?

·6 min čtení

UTC and GMT are often used interchangeably, but they are not the same thing. Understanding the difference matters for developers, schedulers, and anyone working across timezones. This article clarifies the distinction once and for all.

The Short Answer

  • GMT (Greenwich Mean Time) is a *timezone*. It's the local time at the Royal Observatory in Greenwich, London. The UK uses GMT in winter and BST (British Summer Time, GMT+1) in summer.
  • UTC (Coordinated Universal Time) is a *time standard*. It's the basis for civil time worldwide. UTC never changes for DST.
  • In practice, GMT and UTC show the same time during the UK winter. In summer, GMT is one hour behind UTC when the UK switches to BST.

    Historical Background

    Greenwich Mean Time

    GMT was established in 1847 when the Royal Observatory in Greenwich became the reference point for British time. By 1884, the International Meridian Conference designated Greenwich as the location of the prime meridian, making GMT the world's time reference.

    GMT was originally based on *mean solar time* — the average position of the sun throughout the year as seen from Greenwich.

    Coordinated Universal Time

    UTC was introduced in 1960 and formalized in 1972 as a more precise alternative to GMT. Instead of tracking the sun, UTC is based on:

  • International Atomic Time (TAI): Calculated from over 400 atomic clocks worldwide, accurate to one second in 100 million years.
  • Universal Time (UT1): Based on the Earth's rotation, which is gradually slowing.
  • UTC is kept within 0.9 seconds of UT1 by adding leap seconds when the Earth's rotation drifts too far from atomic time.

    Why the Confusion?

    People say "GMT" when they mean "UTC" because:

  • The time is the same during UK winter (when most scheduling happens)
  • "GMT" is shorter and more familiar
  • Many timezone databases (like Unix) use "GMT" as a label
  • 4.Historical inertia — GMT was the standard for over a century

    When It Actually Matters

    For Software Development

    Always use UTC in code. Store timestamps in UTC. Display times in the user's local timezone. Never store "GMT" timestamps because the ambiguity with BST can cause bugs.

    For International Scheduling

    Specify UTC for international events to avoid ambiguity. "The call is at 14:00 UTC" is unambiguous. "The call is at 2 PM GMT" could mean 14:00 UTC or 13:00 UTC depending on whether the speaker accounts for BST.

    For Timezone Conversion

    Most modern systems use UTC offsets, not GMT. When you see "UTC+8" (Singapore), it's clear. When you see "GMT+8," it's technically incorrect — GMT is a specific timezone, not an offset base.

    Leap Seconds

    UTC occasionally adds a leap second to stay aligned with Earth's rotation. GMT has no such mechanism because it's defined by solar observation. In practice, leap seconds don't affect most users, but they can cause issues in high-precision systems.

    The last leap second was added on December 31, 2016, at 23:59:60 UTC. The next one hasn't been announced yet.

    Quick Reference

    AspectGMTUTC ------------------ TypeTimezoneTime standard DSTYes (becomes BST)Never Based onSolar timeAtomic clocks Leap secondsNoYes Used in codeAvoidRecommended PrecisionSecondsAtomic (very high)

    Conclusion

    For everyday conversation, using "GMT" and "UTC" interchangeably is fine. For anything technical — programming, international scheduling, or scientific work — always use UTC. It's more precise, unambiguous, and internationally standardized.

    Zpět na blog🔗 Sdílet