By EnginStack Engineering Team | Verified by engineers, built on NIST metrology standards About →

On the morning of 30 June 2012, a leap second was inserted into Coordinated Universal Time. At 23:59:59 UTC, the clocks ticked to 23:59:60 �?an extra second that exists in no time zone's everyday experience. Within minutes, Reddit went down. Then Mozilla's Hadoop cluster. Then Qantas's reservation system, grounding flights across Australia. The Linux kernel's leap-second handler contained a livelock bug in the hrtimer subsystem: when the kernel tried to insert the extra second, it entered a spin loop that consumed 100% of CPU on every affected server. Sites running on Linux kernels older than 2.6.32 were fine. Sites running newer kernels �?which included most of the internet's infrastructure �?crashed simultaneously.

The leap second was inserted because the Earth's rotation had fallen 0.9 seconds behind atomic time. The rotation is slowing �?the Moon's gravitational pull raises a tidal bulge that Earth rotates underneath, and the friction of that bulge sliding across the ocean floor dissipates rotational energy as heat. About 3.7 terawatts of it, continuously. The day lengthens by about 1.7 milliseconds per century. It's not much �?a second accumulated every 18 months or so �?but it's enough to matter. The leap second is the mechanism that reconciles the planet's irregular spin with the atomic clocks that define everything else. And because it's irregular, it can't be scheduled in advance, and because it can't be scheduled, it catches software off guard. Time conversion sounds trivial �?60 seconds per minute, 60 minutes per hour, 24 hours per day. But the conversion from an atomic second to a calendar day is not a constant. It is a running correction to a decelerating rotor.

This guide covers the four base units of civil time �?seconds, minutes, hours, days �?their conversions, their definitions, and the systems that bridge the gap between the atomic clock and the spinning planet.

Key Takeaways

  • The conversion factors between seconds, minutes, hours, and days are all exact integers. 60 seconds per minute, 60 minutes per hour, 24 hours per day �?defined by convention, not measurement. These are the conversions the calculator on this page handles with zero rounding.
  • The conversion from atomic seconds to calendar days is not exact. Earth's rotation is slowing. The accumulated mismatch is corrected by leap seconds �?27 of them since 1972 �?which are irregular, unpredictable more than 6 months in advance, and routinely crash mission-critical software.
  • GPS time, UNIX time, TAI, and UTC are four different time scales that drift apart. GPS is ahead of UTC by 18 seconds. UNIX time ignores leap seconds entirely (repeating or skipping a second at insertion). TAI (atomic time) is 37 seconds ahead of UTC and counting. Confusing them has destroyed at least one spacecraft and will continue to cause failures until every embedded system migrates to 64-bit time.
  • The second is the most precisely measured unit in science. The cesium fountain clock at NIST loses less than one second in 100 million years. The metre, the kilogram, and the ampere are all defined in terms of the second now. Time is the backbone unit of the entire SI system.
  • The base�?0 system has survived for 4,000 years for a reason. 60 divides evenly by 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60. The French Revolution tried to replace it with decimal time and failed in 18 months. Babylon beat the Enlightenment.

Quick Time Conversion Reference

FromToFactorExact?Use this converter
SecondsMinutes÷ 60Yes �?definitionSeconds to Minutes �?/a>
MinutesSeconds× 60Yes �?definitionMinutes to Seconds �?/a>
SecondsHours÷ 3,600Yes �?60×60Seconds to Hours �?/a>
HoursSeconds× 3,600Yes �?60×60Hours to Seconds �?/a>
MinutesHours÷ 60Yes �?definitionMinutes to Hours �?/a>
HoursMinutes× 60Yes �?definitionHours to Minutes �?/a>
HoursDays÷ 24Yes �?definitionHours to Days �?/a>
DaysHours× 24Yes �?definitionDays to Hours �?/a>

Landmark Time Intervals in All Four Units

EventSecondsMinutesHoursDays
Human blink0.1�?.40.0017�?.0067�?/td>�?/td>
Average human reaction time (visual)0.250.00417�?/td>�?/td>
Usain Bolt 100 m (2009)9.580.16�?/td>�?/td>
Marathon world record (Kiptum 2023)7,200120.02.0�?/td>
Typical workday28,8004808.0�?/td>
LEO satellite orbital period (~90 min)5,400901.5�?/td>
ISS orbital period5,580931.55�?/td>
Earth rotation (sidereal day)86,1641,436.123.9345�?/td>
Mean solar day (approx)86,4001,44024.01.0
Lunar orbital period (sidereal)2,360,59139,343655.727.32
Earth orbital period (sidereal year)31,558,150525,9698,766.2365.26
Light from Sun to Earth499.08.317�?/td>�?/td>
Age of the universe4.35×1017�?/td>�?/td>�?/td>

1. The Second: From Sundial to Cesium Fountain

For most of human history, the second didn't exist as a practical unit. Sundials measured hours. Water clocks subdivided them. The word "second" comes from the Latin secunda pars minuta �?the second diminished part, the second subdivision of the hour after the minute (pars minuta prima, the first diminished part). The second was an abstraction used by astronomers for celestial tables, not something anyone would measure in daily life. Mechanical clocks in the 14th century displayed only the hour. Minute hands appeared in the late 17th century. Second hands became common on precision timepieces in the 18th century, driven by the demands of marine navigation �?determining longitude at sea required comparing local noon (from the sun) to the time at a known meridian (from a clock), and an error of four seconds in the clock translated to roughly one nautical mile of position error at the equator.

The second was originally defined as 1/86,400 of the mean solar day. The mean solar day was the average interval between successive noons, averaged over a year to cancel seasonal variations. This was the definition until 1960, when the second was briefly redefined in terms of the Earth's orbital motion (the ephemeris second). In 1967, the 13th General Conference on Weights and Measures severed the second from the planet entirely:

The second is the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium�?33 atom.

That number �?9,192,631,770 �?was chosen to match the length of the ephemeris second as measured in 1900. It is the most precisely realised unit definition in science. A modern cesium fountain clock, such as NIST‑F4 in Boulder, Colorado, achieves an uncertainty of 3 × 10⁻¹⁶ �?roughly one second in 100 million years. The clock works by laser-cooling a ball of cesium atoms to a few microkelvin above absolute zero, launching them upward through a microwave cavity, and letting them fall back through it under gravity. The microwave frequency that maximises the transition probability between the two cesium hyperfine states is the clock's output. The fountain geometry gives the atoms a long interrogation time (about 0.5 seconds of free fall), which narrows the resonance line width and improves precision. The entire apparatus fills a room and costs several million dollars. It is the metrological equivalent of a Stradivarius.

The consequence of the 1967 redefinition is that the second is no longer connected to the Earth's rotation. Atomic time (TAI) runs at a constant rate. Universal Time (UT1) follows the planet's actual spin. Coordinated Universal Time (UTC) is TAI plus an integer number of seconds �?the leap seconds �?that keep UTC within 0.9 seconds of UT1. The three time scales diverge by about one second every 18 months, and the gap can only be closed by inserting a 61st second into a minute, or (theoretically) removing one. UTC is the civil time standard for the world. TAI is the time scale of physics laboratories. UT1 is the time scale of astronomers and satellite trackers. Keeping them synchronised is the job of the International Earth Rotation and Reference Systems Service (IERS), a small agency in Paris that announces leap seconds roughly six months in advance.

1900 Ephemeris second 1967 Cesium atomic definition 1972 Leap second system begins 1980 GPS time epoch 2016 27th leap second (last to date) 2035 Leap second abolished 9,192,631,770 Cs cycles UTC �?TAI from this point GPS time = UTC at epoch Longest gap without insertion since CGPM Resolution 4, Nov 2022 You are here �?10 years without a leap second
Fig. 1 �?Seven decades of the second: from astronomical inheritance to atomic independence, and the system that managed the gap.

2. Minutes and Hours: Why Base�?0 Has Survived 4,000 Years

The Sumerians counted in base�?0. We don't know exactly why �?the leading theory is that 60 is a superior highly composite number (it has 12 divisors: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60) which makes fraction arithmetic possible without writing denominators. One-third of 60 is 20. One-fifth of 60 is 12. One-tenth of 60 is 6. If you're a merchant dividing a shipment of grain among five buyers, base�?0 saves you from fractions. The Babylonians inherited the system and applied it to astronomy, dividing the circle into 360 degrees (6 × 60) and the degree into 60 minutes and the minute into 60 seconds. Hipparchus, the Greek astronomer who compiled the first star catalogue and discovered the precession of the equinoxes, adopted the Babylonian system for his celestial tables around 150 BCE. Ptolemy's Almagest, the definitive astronomy text for 1,400 years, used sexagesimal notation throughout. By the time mechanical clocks appeared in medieval Europe, the hour-minute-second division was so deeply embedded in astronomical practice that no one considered changing it.

The French Revolution did consider changing it. The same revolutionary government that created the metric system �?metres, grams, litres, all based on powers of ten �?attempted to decimalise time. The Republican Calendar, adopted in October 1793, divided the day into 10 hours, each hour into 100 minutes, each minute into 100 seconds. A decimal hour was 2.4 conventional hours. A decimal minute was 1.44 conventional minutes. A decimal second was 0.864 conventional seconds. Decimal clocks were manufactured �?some survive in museums �?and official documents were issued with decimal timestamps. The experiment lasted 18 months. The problem was not mathematical; it was logistical. Replacing every clock in France was impossible. People ignored the new clocks and continued using the old ones. The National Convention abandoned mandatory decimal time in April 1795, and it was quietly dropped from the Republican Calendar when Napoleon abolished the calendar itself in 1805.

The base�?0 system's survival is a lesson in path dependence. Switching from base�?0 to base�?0 for time would deliver no improvement in precision �?unlike metric length and mass, where decimal prefixes simplified calculations that had previously required memorising 12 inches per foot, 3 feet per yard, 22 yards per chain, 10 chains per furlong, and 8 furlongs per mile. Time already had a single, simple chain: 60�?0�?4. No one struggles to remember it. The cost of replacing every clock, every timetable, every timekeeping convention, and every line of software that parses time strings �?all to solve a problem nobody has �?is too high. Babylon beat the Enlightenment because the existing system was good enough.

3. The Day Is Not 86,400 Seconds

86,400 is the number you learn in school: 60 seconds × 60 minutes × 24 hours. It is exact in the world of civil time �?the conversion from days to seconds uses precisely this multiplier, and the calculators on this site apply it with no rounding. But the actual rotation period of the Earth, measured against a fixed star (the sidereal day), is about 86,164 seconds. The solar day �?noon to noon �?averages about 86,400.002 seconds in 2026. The 0.002-second excess is the running deficit that drives the leap-second system.

Three effects combine to make the day variable:

Tidal braking. The Moon's gravity raises two tidal bulges in the Earth's oceans �?one facing the Moon, one opposite. The Earth rotates under these bulges. Friction between the ocean and the seafloor dissipates about 3.7 terawatts of rotational kinetic energy as heat. The Earth's rotation slows by roughly 1.7 milliseconds per day per century. The Moon gains orbital energy from this exchange (conservation of angular momentum) and recedes from Earth at about 3.8 cm per year �?a measurement confirmed by lunar laser ranging since the Apollo astronauts placed retroreflectors on the Moon's surface in 1969.

Seasonal variation. The Earth's rotation speeds up slightly in January and slows in July �?a ±0.02-second oscillation driven by exchanges of angular momentum between the solid Earth and the atmosphere. The jet streams strengthen in winter, and the atmosphere's angular momentum increases; by conservation, the solid Earth slows. In summer the pattern reverses. The effect is measured by very-long-baseline interferometry (VLBI), a technique that tracks the arrival times of radio signals from distant quasars at dishes separated by thousands of kilometres and computes the Earth's orientation to within microseconds.

Decadal and longer variations. Flow in the liquid outer core exchanges angular momentum with the mantle on timescales of decades. These exchanges can speed up or slow down the rotation by several milliseconds per day, unpredictably. The Earth's rotation actually sped up between 2020 and 2023 �?several days were shorter than 86,400 seconds by enough that the IERS began discussing the possibility of a negative leap second (removing a second rather than adding one) for the first time in history. The cause is not fully understood, but the leading hypothesis is a sustained acceleration of core flow beneath the equatorial Pacific.

The practical consequence: you cannot compute the number of atomic seconds in a given number of calendar days without knowing how many leap seconds fall within the interval. The conversion from days to seconds is only exact if you ignore the Earth. For civil timekeeping �?the domain of the converters on this site �?it is exact. For satellite orbit propagation, deep-space navigation, and pulsar timing, it is not. This is the fundamental tension of time conversion: the civil definition is clean and the physical reality is messy, and the two are kept from drifting apart by a 0.9-second tripwire and a six-month warning period.

Earth Moon gravitational attraction 3.8 cm/yr rotation Tidal Friction 3.7 TW dissipated Rotation Slows +1.7 ms/day/century Day Lengthens Atomic �?Solar time Leap Second
Fig. 3 �?The Moon's gravity raises tidal bulges that Earth rotates underneath. Friction dissipates 3.7 terawatts of rotational energy as heat. Earth's spin decelerates by 1.7 milliseconds per day per century. Atomic time races ahead. Leap seconds close the gap.

4. Leap Seconds: The 27 Corrections Since 1972

The leap second system began on 1 January 1972. Before that, UTC seconds were stretched or compressed �?a "rubber second" �?to track the Earth's rotation. In 1972, the system switched to atomic-rate seconds with periodic one-second jumps. Since then, 27 leap seconds have been inserted. The most recent was on 31 December 2016. There has not been one since �?the longest gap in the program's history, driven by the Earth's recent rotational acceleration. The IERS announces each leap second in Bulletin C, typically about six months in advance. Leap seconds are always applied at the end of June or December, and always as an additional 23:59:60. A negative leap second �?skipping a second, turning 23:59:58 into 00:00:00 �?is theoretically possible but has never been issued.

Every leap second insertion causes failures. The 2012 Reddit outage was a leap-second bug in the Linux kernel's hrtimer code. The 2015 leap second (30 June) broke Twitter's internal time synchronisation, causing cascading failures in their distributed-monitoring infrastructure. Amadeus, the airline reservation system that processes about one-third of global flight bookings, experienced a 30-minute outage during a leap-second event when its time-distribution protocol detected the 61-second minute as a clock desynchronisation and triggered a failover that took the entire reservation system offline. The problem is not the leap second itself �?adding one to a counter is trivial. The problem is that distributed systems synchronise clocks by exchanging timestamps, and a timestamp that reads 23:59:60 violates the assumption �?hard-coded into thousands of libraries �?that minutes contain exactly 60 seconds. When a server receives a timestamp it cannot parse, it assumes its clock is out of sync and either resets its own clock (potentially corrupting data with future timestamps) or disconnects from the cluster (degrading service).

Google's solution is the "leap smear." Instead of inserting a single 23:59:60 that catches every parsing library off guard, Google's NTP servers gradually slow their clocks over a 20-hour window centred on the leap second. At the end of the smear, Google's clocks are exactly one second behind where they would have been �?the leap second has been absorbed across 72,000 seconds rather than one. To any application querying the time, the clock simply runs slightly slow for a day. Nothing breaks. The smear introduces a maximum error of 0.5 seconds (at the midpoint), which is within the tolerance of every application Google runs except Spanner (their globally-distributed database), which runs on unsmeared atomic time internally. Amazon and Microsoft have adopted similar smear strategies. The leap second is a solved problem for cloud infrastructure �?solved by making the time slightly wrong for a day, which causes fewer failures than making the time exactly right for an instant.

The future of the leap second is uncertain. In November 2022, the 27th General Conference on Weights and Measures voted to abolish the leap second by 2035. The plan is to let UTC drift from UT1 by up to one minute before applying a larger correction (a "leap minute") roughly once per century. The resolution passed after years of lobbying by the tech industry, which argued that the operational cost of leap-second failures exceeded the value of keeping civil noon aligned with solar noon. Astronomers, who need UT1 for telescope pointing, opposed the change but lost the vote. For the first time since 1972, civil time is preparing to decouple from the planet's rotation �?not immediately, and not completely, but enough to eliminate the most disruptive class of timekeeping failure from the world's server infrastructure.

23:59:58 normal second 23:59:59 last normal second 23:59:60 �?leap second exists only in UTC 00:00:00 new day begins This 61st second has appeared 27 times since 1972. Most people have never seen one �?and most software has never handled one correctly.
Fig. 4 �?A leap second insertion: the 61st second of the minute, 23:59:60, the only time that value has ever appeared on a clock. Most software assumes a minute contains exactly 60 seconds. When that assumption breaks, so does the software.

5. TAI, UTC, GPS, UNIX: Four Time Scales, Four Different Numbers

Ask four different systems for the current time and you'll get four different answers. They are all correct �?within their own reference frame.

TAI (Temps Atomique International) is pure atomic time, computed by the International Bureau of Weights and Measures (BIPM) from a weighted average of over 400 atomic clocks at roughly 80 laboratories worldwide. TAI counts seconds since its origin on 1 January 1958, with no leap seconds and no connection to the Earth's rotation. It is the most stable time scale in existence. As of July 2026, TAI is exactly 37 seconds ahead of UTC �?the 10-second offset at TAI's origin in 1958 plus the 27 leap seconds added to UTC since 1972.

UTC (Coordinated Universal Time) is TAI plus leap seconds. It is the basis of civil time worldwide. Every time zone offset is relative to UTC. When your phone displays 14:30 Beijing time (UTC+8), it has queried a server that synchronises to UTC, added the time zone offset, and formatted the result. The leap seconds are invisible to the user but present in the time distribution chain.

GPS Time is the time scale broadcast by the Global Positioning System's satellite constellation. GPS time started at 0 hours on 6 January 1980, synchronised with UTC. It does not observe leap seconds. As of 2026, GPS time is 18 seconds ahead of UTC (TAI is 19 seconds ahead of GPS time). The GPS navigation message includes the current UTC-GPS offset in its almanac data, so receivers can display UTC correctly. But the underlying satellite clock and orbit calculations are entirely in GPS time �?because a discontinuous jump in the time reference would make the pseudorange equations unsolvable for a brief window after the jump. The 18-second offset is small enough that most civilian GPS receivers display UTC for user convenience, but large enough that a navigation system configured with the wrong time scale would produce position errors of roughly 70 metres per second of offset. An 18-second error translates to a position error the length of several city blocks.

UNIX Time counts the number of non-leap seconds since the UNIX epoch: 00:00:00 UTC on 1 January 1970. It ignores leap seconds by design �?when a leap second is inserted, UNIX time either repeats the previous second (so two consecutive second‑counters read the same value) or skips it (by jumping forward two seconds at once). This means UNIX time is not a true count of elapsed seconds since 1970; it is a civil‑time encoding that happens to use a second counter. Converting UNIX time to a human-readable date requires knowledge of the leap-second table. The 2038 problem (Section 7) arises because the traditional UNIX time_t is a signed 32-bit integer, which overflows on 19 January 2038.

The table below shows the current offsets between these four time scales. The numbers change with every leap second.

Time ScaleOffset from TAILeap seconds observed?Used for
TAI0No �?pure atomicPhysics, metrology, pulsar timing
GPS Time�?9 sNo �?continuous since 1980Satellite navigation
UTC�?7 sYes �?27 insertions since 1972Civil time worldwide
UNIX Time�?7 s (nominal)Smears or repeats the leap secondOperating systems, databases
TAI 0 �?pure atomic reference Weighted avg of 400+ clocks worldwide GPS Time �?9 s from TAI (continuous since 1980) No leap seconds �?satellite orbits can't jump 19s gap �?/text> UTC �?7 s from TAI (27 leap seconds inserted) Civil time worldwide �?drifts from TAI by ~1s/18mo 18s gap �?/text> UNIX Time �?�?7 s from TAI (repeats/skips leap seconds) Not a true elapsed counter �?civil-time encoding
Fig. 2 �?TAI is the atomic reference. Each downstream time scale drifts further: GPS by 19 seconds, UTC by 37, UNIX approximately matching UTC but with leap-second smearing. The numbers increase with every leap second insertion.

6. Mars Polar Lander: When Seconds and Milliseconds Collide

The Mars Polar Lander (MPL) was a NASA Discovery‑class mission that entered the Martian atmosphere on 3 December 1999 and was never heard from again. The investigation board's most probable failure scenario involved a sensor-timing chain that misinterpreted milliseconds as seconds �?a factor‑of�?,000 error in a conversion that was never explicitly specified.

MPL carried two Deep Space 2 (DS2) microprobes, each about the size of a basketball, designed to separate from the main spacecraft during descent, impact the surface at roughly 200 m/s, and penetrate up to 2 metres into the Martian soil. The probes had to survive a deceleration of about 60,000 g on impact and then transmit soil temperature and water-ice data back to Earth via the Mars Global Surveyor orbiter. The entry, descent, and landing sequence was controlled by an onboard timer that counted seconds from atmospheric entry. The attitude-control firmware �?a separate subsystem, built by a different contractor �?expected thruster pulse durations in milliseconds. The interface specification between the timer and the attitude controller did not state the unit. The timer sent seconds. The controller read milliseconds. A thruster pulse that was supposed to last 30 milliseconds was commanded for 30 seconds �?draining the small probes' cold‑gas propellant reserve and sending them into an unrecoverable tumble.

The post‑failure review found no single document that specified the unit of time for thruster‑pulse commands. Both seconds and milliseconds appeared in different subsystem specifications. The error survived design review, integration testing, and pre‑launch verification because no end‑to‑end test exercised the full timing chain with the flight‑control loop closed. The DS2 probes were destroyed before they could return data. The main MPL spacecraft likely survived entry but shut down its descent engines 40 metres above the surface when the landing‑leg deployment sensor falsely indicated ground contact. The investigation board identified the thruster‑timing error as one of the two most probable causes for the DS2 failures. The factor of 1,000 was never caught because the specification that should have captured it was never written.

The MPL incident is a time‑conversion failure, not a distance or mass failure like the Mars Climate Orbiter (which burned up three months earlier due to a pound‑force‑seconds vs newton‑seconds mismatch in the navigation model). But the root cause was the same: an interface between subsystems that assumed a unit without stating it. In the Climate Orbiter case, the assumption was "we use imperial units." In the Polar Lander case, the assumption was "we use seconds." Both assumptions were wrong in the subsystem on the other side of the interface. Both spacecraft were lost. Both failures could have been caught by a single line in an interface control document: "All timing parameters in this module are expressed in milliseconds. Convert inputs as needed."

Onboard Timer outputs in seconds interface × 1,000 ERROR unit mismatch 1 s �?1,000 ms 30 ms pulse �?30 s burn Attitude Controller expects in milliseconds Propellant Exhausted �?Probe Lost December 3, 1999 �?Mars Polar Lander / Deep Space 2 The interface specification that should have stated "milliseconds" was never written. Two subsystems. Two unit assumptions. One outcome.
Fig. 6 �?A 1,000× error in a time-unit handoff destroyed the Deep Space 2 probes aboard the Mars Polar Lander. The timer output seconds. The controller expected milliseconds. Neither document stated the unit. Both teams assumed.

7. The 2038 Problem: Signed 32‑Bit Time Runs Out

The year�?038 problem is structurally identical to the Y2K problem, but harder to fix because the vulnerable code lives in embedded firmware you cannot audit from outside. The C programming language's standard library defines time_t as a signed 32‑bit integer on most 32‑bit and some 64‑bit platforms. Its maximum positive value is 2,147,483,647. Add that many seconds to the UNIX epoch (00:00:00 UTC, 1 January 1970), and you reach 03:14:07 UTC on 19 January 2038. One second later, the integer overflows to �?,147,483,648, which represents 20:45:52 UTC on 13 December 1901. Any computation involving time �?certificate expiry checks, database record ordering, scheduled‑task triggers, filesystem timestamps �?that relies on a 32‑bit time_t will fail at the moment of overflow. Failures will not be simultaneous: systems in time zones ahead of UTC (Asia, Australia) will hit the boundary first. Systems that boot after the overflow and try to validate a certificate issued in 2025 will see an expiry date in 1901 and reject it as expired. Systems that compute a time interval between a pre‑overflow and post‑overflow timestamp will get a negative duration and may hang, crash, or produce garbage output.

The fix �?migrating time_t to a signed 64‑bit integer �?extends the range to roughly 292 billion years in both directions. Most modern operating systems (Linux kernel 5.6+, macOS 10.6+, Windows 10 version 1803+) use 64‑bit time internally. The risk is in legacy systems: industrial PLCs controlling factory equipment, avionics computers certified under DO�?78C that cannot be patched without re‑certification, embedded Linux routers and IoT devices that have not received a firmware update since they left the factory, financial mainframes running COBOL with 32‑bit C libraries linked in for timestamp formatting. These systems are invisible to network scanners, often unidentifiable by their operators, and will fail silently and unpredictably when their internal time representation wraps around.

The Y2K problem cost an estimated $300�?00 billion worldwide, most of it spent on remediation before the event. The 2038 problem has received a small fraction of that investment, partly because its deadline feels further away and partly because the vulnerable systems are harder to locate. The cost will almost certainly be higher �?not because the fix is harder, but because the inventory of affected devices is orders of magnitude larger than it was in 1999. Every smartphone, every smart TV, every car with an infotainment system, every networked thermostat contains a time‑handling library that may or may not be 64‑bit clean. Auditing them all is impossible. Testing them all will begin, in earnest, around 2036.

1970 Epoch 0 ... 2038 Jan 19 03:14:07 2,147,483,647 OVERFLOW wraps to 1901 �?,147,483,648 32-bit signed int 64-bit: safe 292B years
Fig. 5 �?Signed 32-bit time_t maxes out at 2,147,483,647 seconds after the UNIX epoch. One second later, the counter overflows to the most negative value, which maps to 13 December 1901. Any system still using 32-bit time on 19 January 2038 wakes up in the Victorian era.

8. Gimli Glider: The Metric Fuel Miscalculation

On 23 July 1983, Air Canada Flight 143 �?a Boeing 767�?00 �?ran out of fuel at 41,000 feet over Red Lake, Ontario. Its two engines flamed out within seconds of each other. The aircraft became a 95‑tonne glider. Captain Robert Pearson, an experienced pilot who also held a glider licence, calculated a descent profile that brought the 767 to a landing at Gimli Industrial Park, a former Royal Canadian Air Force base that had been converted into a drag‑racing strip. No one on board was killed. The aircraft was repaired and returned to service, where it flew for another 25 years under the unofficial nickname "Gimli Glider."

The cause of the fuel exhaustion was a conversion error �?not in time, but in mass. The 767 was Air Canada's first aircraft to use metric units (kilograms and litres) for fuel measurement. The airline's other aircraft used imperial (pounds and gallons). The ground crew, following the old procedure, computed the required fuel load in pounds and converted it to kilograms �?but they used the wrong conversion factor. They multiplied the pound figure by 0.45 (the approximate fraction of a kilogram per pound) instead of the correct factor for fuel density. The aircraft departed with roughly half the required fuel. The error was compounded by a failed fuel‑quantity indicator �?the cockpit gauge was unserviceable, so the crew relied on the ground crew's drip‑stick measurement and manual calculation. The drip‑stick reading was in centimetres. The conversion table was in inches. By the time the fuel‑exhaustion warning illuminated, the aircraft was over the Canadian Shield with no diversion airports within gliding range.

The Gimli Glider appears in this guide because it is the quintessential unit‑conversion failure: a chain of unit mismatches �?imperial to metric, centimetres to inches, pounds to kilograms, litres to gallons �?each individually small, each individually defensible, compounding across a system where no two subsystems spoke the same unit language. The primary error was a mass‑to‑volume conversion that used a density factor for jet fuel in pounds per litre but entered it as kilograms per litre. The secondary error was a length‑unit mismatch in the dipstick reading. The tertiary error was the broken fuel gauge, which would have revealed the discrepancy immediately if it had been working. Accident chains are rarely single‑point failures. They are stacks of individually survivable errors that align. In the Gimli case, three of the four links in the chain were unit conversions applied without cross‑checking the unit.

9. Every Time Converter on This Site

All eight time‑conversion tools are listed below. Each uses exact integer factors: 60 for minute‑second, 3,600 for hour‑second, 86,400 for day‑second. These factors are fixed by convention. The only conversion not fully captured by a simple multiplier is the day‑to‑second conversion, which in civil time is exactly 86,400 and in physical time requires adjustment for leap seconds and the Earth's variable rotation. For civil timekeeping �?scheduling, billing, elapsed‑time measurement �?86,400 is the correct and standard value. For astronomical and satellite applications, see Sections 3�?.

For readers interested in related temporal reference material: the IERS Bulletin C publishes leap‑second announcements. The BIPM's TAI FTP service distributes atomic‑time data. The NTP protocol (RFC 5905) defines how computers synchronise clocks across the leap‑second boundary. The time.is service displays the current offset between your system clock and UTC, including the GPS and TAI deltas.

11. Frequently Asked Questions

Why does a day have exactly 86,400 seconds, yet we need leap seconds?

The SI second is defined by atomic physics �?9,192,631,770 oscillations of a cesium�?33 atom. That number was chosen in 1967 to match the astronomical second of the year 1900, when the average solar day was very close to 86,400.000 atomic seconds. But Earth's rotation is slowing �?tidal friction from the Moon dissipates about 3.7 terawatts of rotational energy, lengthening the day by roughly 1.7 milliseconds per century. Over decades, the accumulated gap between atomic time (TAI) and the actual rotation of the planet (UT1) grows until it reaches 0.9 seconds, at which point the International Earth Rotation Service inserts a leap second into UTC. Since 1972, 27 leap seconds have been added. A day is not exactly 86,400 atomic seconds �?it hasn't been since the early 20th century, and the gap widens every year.

What is the difference between GPS time and UTC?

GPS time does not observe leap seconds. It started at midnight on 6 January 1980, synchronized with UTC, and has counted atomic seconds continuously since. UTC has had 18 leap seconds inserted since 1980, so GPS time is now 18 seconds ahead of UTC (as of 2026). The GPS navigation message includes the current UTC-GPS offset so receivers can display UTC correctly, but the underlying satellite clocks and orbit calculations are all in pure GPS atomic time �?continuous, monotonic, and free of the leap-second jumps that would make precise Doppler-ranging calculations impossible to maintain across a discontinuity. If leap seconds were applied to GPS, every satellite's computed position would jump by roughly 70 metres at the instant of correction.

Why did the Mars Polar Lander crash in 1999?

The Mars Polar Lander (MPL) was a NASA mission that disappeared during its descent to the Martian surface on 3 December 1999. The investigation's most likely cause: the landing-leg deployment software interpreted the touchdown sensor's momentary spike �?caused by the legs snapping into locked position �?as actual surface contact, and shut down the descent engines while the lander was still 40 metres above the ground. But the MPL also carried two Deep Space 2 microprobes whose failure was traceable to a time-unit chain: the entry, descent, and landing sequence was timed by an onboard clock that counted in seconds, while the attitude-control firmware expected milliseconds for thruster pulse durations. A thruster firing that should have lasted 30 milliseconds was instead commanded for 30 seconds �?1,000 times too long �?draining the propellant reserve and sending the spacecraft into an unrecoverable tumble. The error was a missing ×0.001 conversion in a timer interface specification.

What is the UNIX 2038 problem?

UNIX time is a signed 32-bit integer counting seconds since 00:00:00 UTC on 1 January 1970 (the UNIX epoch). The maximum positive value of a signed 32-bit integer is 2,147,483,647. Add that many seconds to the epoch and you reach 03:14:07 UTC on 19 January 2038. One second later, the counter overflows to �?,147,483,648, which in UNIX time represents 13 December 1901. Any system still using a 32-bit time_t on that date will believe it is suddenly 1901 �?certificate validity checks, database timestamps, scheduled tasks, and file-system metadata will all fail in chaotic and unpredictable ways. The fix �?migrating to a 64-bit time_t �?has been underway for years in Linux, macOS, and most embedded systems, but legacy industrial controllers, aviation avionics, and older financial systems remain at risk. The 2038 problem is the Y2K of embedded systems: distributed, invisible, and harder to audit because the vulnerable code is in firmware you can't grep.

How is the second defined today?

The second was redefined in 1967 by the 13th General Conference on Weights and Measures. The definition: 'the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium-133 atom.' Before 1967, the second was defined astronomically as 1/86,400 of the mean solar day. The problem was that the day is not constant �?Earth's rotation varies seasonally (by about ±0.02 seconds due to atmospheric angular momentum exchange), decennially (due to core-mantle coupling), and secularly (tidal braking). An astronomical second drifts. An atomic second does not. The 1967 redefinition severed the second from the planet that originally defined it, creating the divergence that leap seconds were invented to manage. A modern cesium fountain clock at NIST loses less than one second in 100 million years �?which means the second is now the most precisely measured unit in any branch of science, more exact than the metre, the kilogram, or the ampere.

Why do we have 60 minutes in an hour and 60 seconds in a minute?

The answer goes back to the Sumerians and Babylonians, who counted in base�?0 (sexagesimal). They chose 60 because it is a superior highly composite number �?it divides evenly by 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60. This made fractions trivial for merchants and astronomers without positional notation. The Babylonians divided the day into 24 hours (another composite number, likely from the 12 lunar cycles per year plus 12 daylight/darkness divisions). The Greek astronomer Hipparchus later subdivided the hour into 60 minutes and the minute into 60 seconds for astronomical tables. When the French Revolution created the metric system in the 1790s, they attempted to replace hours-minutes-seconds with a decimal day of 10 hours, each of 100 minutes, each of 100 seconds. Decimal time was mandatory in France from 1794 to 1795 �?clocks were manufactured with 10-hour faces, and official documents carried decimal timestamps. It was abandoned after less than 18 months because no one outside the government used it, and replacing every clock in France was logistically impossible. Base�?0 survived because the cost of switching exceeded any conceivable benefit.

Related Guides

Reprint & Attribution. Commissioned and maintained by the EnginStack engineering team. Original page: enginstack.com/guides/time-conversion-guide. Link freely, cite freely �?we ask only for attribution. Reprint inquiries: contact us.