Seconds Between Two Datetimes
Count the elapsed seconds - to the second - between any two datetimes. Bespoke NASA-style green-LED mission clock with live tick when the end datetime is in the future. UTC-millisecond math is DST-safe.
Quick Conversion
Formula: minutes = seconds / 60
Mission elapsed time
Common second spans
| Seconds | HH:MM:SS | Decimal hours |
|---|---|---|
| 10 | 00:00:10 | 0.003 |
| 60 | 00:01:00 | 0.017 |
| 300 | 00:05:00 | 0.083 |
| 600 | 00:10:00 | 0.167 |
| 1,500 | 00:25:00 | 0.417 |
| 3,600 | 01:00:00 | 1.000 |
| 7,200 | 02:00:00 | 2.000 |
| 10,800 | 03:00:00 | 3.000 |
| 21,600 | 06:00:00 | 6.000 |
| 43,200 | 12:00:00 | 12.000 |
| 86,400 | 24:00:00 | 24.000 |
| 604,800 | 168:00:00 | 168.000 |
| 2,592,000 | 720:00:00 | 720.000 |
| 31,557,600 | 8766:00:00 | 8766.000 |
Need minute resolution? Minutes between dates.
seconds = (end_ms - start_ms) / 1000Worked: 09:00:00 to 17:30:45 -> 30,645,000 ms / 1000 = 30,645 seconds = 08:30:45. JavaScript Date math is UTC-millisecond; leap seconds (27 inserted 1972-2024) are not accounted for.
How to count seconds between two datetimes
- 1Enter the start datetime - the input supports seconds-level precision (step=1).
- 2Enter the end datetime with seconds precision.
- 3Read the mission clock. If end is in the future the LIVE tick light flashes green and the counter updates each second.
- 4Read total seconds in the bottom result card.
- 5Save the elapsed-seconds record to local history.
From caesium-133 to Unix epoch: the second as the SI base unit
In 2026, a Bangalore DevOps engineer needs second-exact CI build duration deltas across timezones. This calculator uses UTC-millisecond math and a NASA mission-clock style display - precise, DST-safe, and visibly authoritative for screen-sharing in standup.
The second is the base unit of time in the International System of Units (SI). It was redefined in 1967 by the 13th General Conference on Weights and Measures (CGPM) as the duration of 9,192,631,770 periods of the radiation emitted by a caesium-133 atom transitioning between the two hyperfine levels of its ground state. This atomic definition replaced the older astronomical definition tied to the ephemeris second of 1956 and the mean solar second before that.
NASA mission clocks count seconds from a designated reference point. The Apollo program used Mission Elapsed Time (MET) counted from launch; the Space Shuttle program continued the practice. The famous Apollo 11 announcement of T-minus 30 seconds before lunar touchdown on 20 July 1969 was a countdown of the second. Modern launches (Falcon 9, Atlas V, SLS) use T-minus seconds for the count and MET seconds after liftoff. This calculator's live ticker uses the same paradigm.
The Unix epoch, chosen at Bell Labs in 1971 by Ken Thompson, fixes time zero at 1970-01-01T00:00:00 UTC. Unix time counts forward in seconds since that moment, ignoring leap seconds. As of 2026 we are approximately 1.77 billion Unix seconds past the epoch. The 32-bit signed Unix timestamp overflows on 19 January 2038 at 03:14:07 UTC - the Year 2038 problem - which is why most modern systems use 64-bit timestamps.
Leap seconds, introduced in 1972 by the International Earth Rotation and Reference Systems Service (IERS), occasionally add an extra second to UTC to keep civil time aligned with astronomical UT1 (rotation-based time). Twenty-seven leap seconds have been inserted between 1972 and 2024. The CGPM voted in 2022 to abolish leap seconds by 2035. This calculator uses JavaScript's Date primitive, which ignores leap seconds entirely - errors of up to 27 seconds for very long spans crossing many leap insertions.
Sub-second precision matters in finance (high-frequency trading measures order latency in microseconds and nanoseconds), networking (TCP retransmits at 200ms RTT thresholds), and scientific instruments (the LIGO gravitational-wave detector samples at 16,384 Hz, one sample every 61 microseconds). For civil time and elapsed wall-clock duration, the second is the standard unit and this calculator returns whole seconds.
Sport timing has driven athletic-grade second precision. Olympic swimming and athletics resolve to one-hundredth of a second (0.01 s). Formula 1 timing uses one-thousandth (0.001 s). World records under the International Association of Athletics Federations (now World Athletics) require automatic timing to the hundredth of a second since 1977. This page does not handle sub-second resolution; for hundredths use a stopwatch.
Telecommunications meters measure call duration in seconds. Mobile carriers historically billed by the minute (rounded up) but most modern plans either bill by the second or include unlimited talk. The 60-second meter on a payphone (cost per second multiplied by elapsed seconds) was a fixture of pre-2000 public-phone culture. This calculator's live ticker mirrors that experience - one count per second, in real time.
Used by DevOps, sales ops, editors
“Build duration regressions are measured in seconds. I paste two timestamps from our Jenkins logs - this gives me exact seconds and the live ticker is a nice touch for our team standup screen.”
“We have a 60-second callback SLA after a hot lead form-fill. Two timestamps in, total seconds out, no spreadsheet rounding bug. The NASA mission clock styling is just fun.”
“Clients pay $5 per second of finished cut. Need exact second counts between in-point and out-point timecodes. This tool plus the live ticker keeps me honest.”
“Average handle time SLA is 240 seconds. Our analytics dashboard rounds, this tool does not. I sanity-check the dashboard against this calculator every Monday.”
Love using our calculator?
Related tools
Related Articles
Dive deeper with our expert guides and tutorials related to Seconds Between Dates Calculator