Article — Time Difference Calculator (With Time Zones)
Time difference calculator (with time zones)
The time difference between two clock times is the end clock time minus the start clock time. When the two times are in different zones, subtract the time-zone offset on top. New York 9 AM to London 5 PM has an 8-hour clock difference and a 5-hour zone offset, which leaves 3 hours of real elapsed time. The calculator separates the two so you can see both at once.
Time difference is the question behind every flight schedule, video call invitation, and timesheet entry that crosses a region boundary. The math is simple once the clock difference and the zone offset are tracked separately.
What time difference means
Time difference is the gap between two specific moments expressed in hours, minutes, and seconds. In a single zone, it equals the clock difference: end time minus start time. Across zones, it splits into two parts that need to be combined: the clock difference and the time-zone offset.
The IANA time zone database, maintained as a community project under the IANA name since 2011, is the canonical list of time-zone offsets and daylight saving rules for every region of the planet. Operating systems and time libraries read it for accurate cross-zone time math.
The time difference formula
Convert both clock times to seconds since midnight in their respective local zones. Subtract start from end. If the result is negative, add 86,400 to account for an overnight rollover. That is the clock difference. To get real elapsed time across zones, subtract the difference of UTC offsets (in hours times 3,600) from the clock difference.
clock_diff = t_end − t_start zone_diff = offset_end − offset_startreal_elapsed = clock_diff − zone_diff × 3600 if < 0, add 86,400The two outputs answer different questions. The clock difference answers "how many hours of the day passed". The real elapsed time answers "how long did it actually take in the real world". For same-zone spans they are equal. For cross-zone spans they diverge by the zone offset.
The IANA time zone database tracks 38 distinct standard-time offsets in use today, plus every historical change since 1970. India uses UTC+5:30 and Nepal uses UTC+5:45, two of the few non-hour offsets in the world. Kiribati moved its date line in 1995 to put the entire country on UTC+12 to +14.
Time difference across time zones
The time-zone offset is the gap between two cities measured from UTC. London is UTC+0 in winter and UTC+1 in summer. New York is UTC-5 in winter and UTC-4 in summer. The constant relationship is "London is 5 hours ahead of New York" most of the year. The week or two of mismatched DST transitions in March and October makes the gap briefly 4 or 6 hours.
Time difference across midnight
An overnight span is the most common edge case in time difference calculations. A night-shift worker clocks in at 22:00 and clocks out at 06:00. Subtracting 06:00 from 22:00 gives minus 16 hours, which is obviously wrong. The convention used by virtually every time library is to add 24 hours when the end is earlier than the start, producing a corrected 8-hour shift.
This convention assumes the span is less than 24 hours. For longer spans, the calculator's date-aware mode adds the explicit day difference. A start of 22:00 on day 1 and an end of 22:00 on day 3 totals 48 hours, computed as 2 days times 86,400 seconds with no within-day clock difference.
Time difference and UTC
Coordinated Universal Time, or UTC, is the global reference time scale maintained by international agreement among national metrology labs including NIST and the US Naval Observatory. Every time zone is defined as plus or minus a number of hours from UTC. UTC does not observe daylight saving.
The cleanest way to compute a time difference across zones is to convert both times to UTC, subtract there, and convert the result back to a clock format. Programming languages and modern operating systems all do this internally. The calculator above shows the result of both methods so you can see how the clock and real elapsed time relate.
Worked time difference examples
A flight from Los Angeles to Tokyo leaves at 10 AM local time and arrives at 2 PM local time the next day. The clock difference (LA to Tokyo) is 28 hours, but the zone offset is 17 hours (LA at UTC-8, Tokyo at UTC+9), so the real elapsed flight time is 11 hours. A working day for a remote employee in Warsaw working with a Chicago team is 7 hours, the zone offset between UTC+1 and UTC-6.
- NYC to London = +5 hours (London ahead)
- NYC to Tokyo = +14 hours (Tokyo ahead)
- UTC to Kolkata = +5.5 hours
- London to Sydney = +10 hours (standard time)
- LA to NYC = +3 hours (NYC ahead)
- Berlin to Warsaw = 0 hours (same zone)
- UTC = the global reference time scale, no DST
Common time difference mistakes
An 8 AM call from a New York office to a London office at 1 PM looks like a 5-hour difference on the calendar grid, but it represents 0 hours of real elapsed time: both parties picked up the phone at the same moment in UTC. The clock difference is a property of the display; the real elapsed time is a property of the universe.
The second common mistake is forgetting that DST shifts the offset for part of the year. The third is mixing 12-hour and 24-hour notation: 12:30 AM is half past midnight, not half past noon. The fourth is rounding minutes incorrectly when converting to decimal hours; 4 h 30 m is 4.5 hours, not 4.30.
Time difference and daylight saving
Daylight saving time shifts the clock by one hour for part of the year in most of Europe, North America, and parts of Australia and South America. The IANA time zone database publishes the exact rules for every region, including the dates of past and current DST transitions back to 1970. Equator-region countries do not observe DST; many Asian countries dropped it decades ago.
For any time difference that crosses a DST changeover, convert both times to UTC first using a time-zone-aware library, subtract in UTC, then convert the result back. The standard-time offsets used by this calculator are accurate for the rest of the year but can be off by one hour during the transition weeks.