EVERYDAY CLARITY

Time Duration Calculator

Calculate elapsed seconds between timestamps with explicit UTC offsets.

Enter your values

01
Include seconds and an explicit Z or UTC offset, for example 2024-01-01T12:00:00Z. At most three fractional-second digits.
Include seconds and an explicit Z or UTC offset, for example 2024-01-01T12:00:00Z. At most three fractional-second digits.

Use the stated calendar or timestamp format.

Your result
Seconds
9,000

Result for the values shown.

Calculations run in your browser.

What to enter
InputMeaning and units
StartInclude seconds and an explicit Z or UTC offset, for example 2024-01-01T12:00:00Z. At most three fractional-second digits.
EndInclude seconds and an explicit Z or UTC offset, for example 2024-01-01T12:00:00Z. At most three fractional-second digits.

Understanding your result

The result compares explicitly dated instants using their offsets. A negative countdown indicates that the target is before the reference instant.

Common mistakes

  • Comparing timezone-free clock strings as though they were fully specified instants.

Check your calculation

  • Use a short known UTC interval; different offsets can describe the same instant.

Calculation checks, sources and review limits

How many seconds elapsed between two timestamps with UTC offsets?

Calculate elapsed seconds between timestamps with explicit UTC offsets.

Common uses

  • Calculate elapsed seconds between timestamps with explicit UTC offsets.

How it works

seconds=endEpochSeconds-startEpochSeconds; split signed duration into days/hours/minutes/seconds. Calendar arithmetic uses the proleptic Gregorian calendar. Explicit calendar dates are independent of local daylight-saving changes. Month/year additions clamp to the last valid day of the destination month. Timestamp arithmetic requires a stated UTC offset and excludes leap seconds.

Worked example

Enter Start: 2024-01-01T23:00:00Z; End: 2024-01-02T01:30:00Z. The result is Seconds: 9000.

FAQ

How many seconds elapsed between two timestamps with UTC offsets?

seconds=endEpochSeconds-startEpochSeconds; split signed duration into days/hours/minutes/seconds. Calendar arithmetic uses the proleptic Gregorian calendar. Explicit calendar dates are independent of local daylight-saving changes. Month/year additions clamp to the last valid day of the destination month. Timestamp arithmetic requires a stated UTC offset and excludes leap seconds.

What assumptions and limits apply?

Require offsets. Exclude leap seconds; second field 00..59 only.