An embarrassing problem with elementary mathematics (local time computation)

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
ag22
Hello!

I am living in Germany. Let's say that I want to know the local time in New York, and let's arrange that the local time in Germany is 11:00 o'clock (24-hour clock).

Germany's time is shifted 1 hour ahead (UTC +1), and New York's time is shifted 5 hours behind (UTC -5). So the difference is in this case -6 hours.

Here comes the problem: when I subtract 6 from 11, I get 5:00 o'clock as a result. But that's not the case.
The local time in New York is instead 6:00 o'clock.

Now, let's do another example with Turkey and London. Turkey's time is shifted 2 hours ahead (UTC +2), while London's time is not shifted (UTC 0).
Let's assume that the local time in Turkey is currently 12:00 o'clock. If I do the math I get 10:00 o'clock which appears to be correct.

Through both cases I noticed that every time a zero is involved (UTC 0 put on a number line) you get an overflow of 1 - why is that?


Regards,
ag22
 
Mathematics news on Phys.org
ag22 said:
Germany's time is shifted 1 hour ahead (UTC +1), and New York's time is shifted 5 hours behind (UTC -5). So the difference is in this case -6 hours.

Here comes the problem: when I subtract 6 from 11, I get 5:00 o'clock as a result. But that's not the case.
The local time in New York is instead 6:00 o'clock.

New York is currently on (Eastern) Daylight Savings Time ("summer time") which is UTC-4.

Most of the rest of the USA also uses Daylight Savings Time, but with varying UTC offsets because of the different time zones.

Early on Sunday morning (4 November) we will "fall back" to standard time (UTC-5 for New York).
 
I see! My problem was that I simply didn't consider the Daylight Savings Times generally, so I was using the wrong UTC offset of New York (UTC-5 instead of UTC-4).

Therefore it was not really a mathematical issue as I thought before.

Thanks jtbell and Ryan_m_b for helping me to getting a bit wiser!
 
Last edited by a moderator: