An embarrassing problem with elementary mathematics (local time computation)

AI Thread Summary
The discussion centers around understanding time zone differences, specifically between Germany and New York, as well as Turkey and London. The initial confusion arises from calculating the time difference without accounting for Daylight Saving Time. Germany is at UTC +1, while New York is typically at UTC -5, but during Daylight Saving Time, it shifts to UTC -4. This results in a 5-hour difference instead of the expected 6 hours when it's 11:00 in Germany, leading to the correct local time in New York being 6:00 instead of 5:00. The same principle applies to Turkey and London, where Turkey is at UTC +2 and London shifts from UTC +1 back to UTC 0. The key takeaway is the importance of considering Daylight Saving Time when calculating time differences.
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
 
Physics 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).
 
Similarly London (and the rest of the uk) has been in british summer time which is UTC+1 for the last 6 months. It went back to UTC+0 last weekend.
 
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:
No worries :smile:
 
Similar to the 2024 thread, here I start the 2025 thread. As always it is getting increasingly difficult to predict, so I will make a list based on other article predictions. You can also leave your prediction here. Here are the predictions of 2024 that did not make it: Peter Shor, David Deutsch and all the rest of the quantum computing community (various sources) Pablo Jarrillo Herrero, Allan McDonald and Rafi Bistritzer for magic angle in twisted graphene (various sources) Christoph...
Thread 'My experience as a hostage'
I believe it was the summer of 2001 that I made a trip to Peru for my work. I was a private contractor doing automation engineering and programming for various companies, including Frito Lay. Frito had purchased a snack food plant near Lima, Peru, and sent me down to oversee the upgrades to the systems and the startup. Peru was still suffering the ills of a recent civil war and I knew it was dicey, but the money was too good to pass up. It was a long trip to Lima; about 14 hours of airtime...
Back
Top