The Problem with Time & Timezones - Computerphile

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2013
  • A web app that works out how many seconds ago something happened. How hard can coding that be? Tom Scott explains how time twists and turns like a twisty-turny thing. It's not to be trifled with!
    A Universe of Triangles: • A Universe of Triangle...
    LZ Compression in Text: • Elegant Compression in...
    Characters, Symbols and the Unicode Miracle: • Characters, Symbols an...
    More from Tom Scott: / enyay and / tomscott
    / computerphile
    / computer_phile
    This video was filmed and edited by Sean Riley.
    Computerphile is a sister project to Brady Haran's Numberphile. See the full list of Brady's video projects at: bit.ly/bradychannels

ความคิดเห็น • 2K

  • @jbkjbk1999
    @jbkjbk1999 9 ปีที่แล้ว +23548

    This video should be called "Timezones - Tom Scotts descent into madness"

  • @dt28469
    @dt28469 9 ปีที่แล้ว +14597

    You know that your date calculator is accurate when it asks you: "start date, end date, location, ethnicity, political spectrum, belief system"

  • @EbonAvatar
    @EbonAvatar 7 ปีที่แล้ว +14587

    "and THEN...you get a call...from the astrophysicist."
    The arrival of an astrophysicist has never been so sinister.

  • @undead890
    @undead890 7 ปีที่แล้ว +6324

    And to think, someone just asked Tom what time it was, then started recording.

  • @npip99
    @npip99 10 ปีที่แล้ว +18198

    "And you thank them for making it open source" - Best programmer line ever.

  • @djdexcat
    @djdexcat 7 ปีที่แล้ว +8542

    _Then_ you get a call from a space station in close orbit around a black hole, saying that _their_ seconds are slower than Earth seconds, and ask you to add code to account for _that._

  • @meneldal
    @meneldal 7 ปีที่แล้ว +6514

    You forgot when France changed their calendar and tried to introduce decimal time.

  • @Stijn081
    @Stijn081 8 ปีที่แล้ว +10466

    Don't worry about timezones, worry about why all these people in all those countries know your number :D

    • @Zhab80
      @Zhab80 8 ปีที่แล้ว +270

      Stijn Stevens I laughed out loud to that.

  • @jeffreyblack666
    @jeffreyblack666 8 ปีที่แล้ว +6481

    And then you get a call from someone on Mars...

  • @spritz19
    @spritz19 8 ปีที่แล้ว +4294

    And THEN, you get a call from your boss, asking if you can work tomorrow

  • @drplokta
    @drplokta 8 ปีที่แล้ว +2561

    You forgot to mention the phone call from a Swedish historian talking about the years from 1700 to 1712, which ended up with February 30 1712 being a real date in Sweden.

  • @hjalfi
    @hjalfi 5 ปีที่แล้ว +1600

    I am currently writing timezone code.
    EVERY WORD OF THIS IS TRUE.

  • @shibapatrol801
    @shibapatrol801 6 ปีที่แล้ว +7070

    Just to confuse my students who were tasked to create a simple program to calculate the user's age in seconds, I sent them this video haha.

  • @alphamineron
    @alphamineron 2 ปีที่แล้ว +2775

    I like how the Astrophysicist is the breaking point when ironically those are the only people with justifiable reasons for making modifications in time recordings, while the rest of the world's is just like... "We do this, so accommodate us"

  • @metleon
    @metleon 4 ปีที่แล้ว +3006

    Then you get a call from Arizona saying "Oh we don't do Daylight Savings Time."
    And then you get a call from the Navajo in Arizona saying "Oh we actually DO do Daylight Savings Time."

  • @BracerJack
    @BracerJack 8 ปีที่แล้ว +4329

    This video probably makes a lot of people's blood boils as they sympathize with the pain of being a programmer.

  • @StefanNilsson
    @StefanNilsson 10 ปีที่แล้ว +953

    Nice overview, but Computerphile forgot to mention how Sweden in 1699 decided to adopt the Gregorian calendar _gradually_ over a 40-year period - and managed to _butcher the plan_ already the next year. In fact, the period 1699-1753 in Sweden comes with many surprises. For example, Karl XII decided to _switch back_ to the Julian calendar in 1711.
    en.wikipedia.org/wiki/Swedish_calendar

  • @FennecTECH
    @FennecTECH 7 ปีที่แล้ว +2756

    "and you never ever look at it again because that way lays madness"

  • @1everest84
    @1everest84 7 ปีที่แล้ว +2980

    Should be a fun problem to revisit in 2038 when UNIX time breaks.

  • @codytroyer8513
    @codytroyer8513 8 ปีที่แล้ว +672

    I can see Tom Scott's hair turn grey, or gray (depending what time zone you're in) during the duration of this video.

  • @114Freesoul
    @114Freesoul 10 ปีที่แล้ว +459

    It was so fun to watch Tom get more and more riled up about all these nuances

  • @yovliporat8608
    @yovliporat8608 8 ปีที่แล้ว +1328

    This was the greatest rant I have ever heard

  • @gwennaneliezer8490
    @gwennaneliezer8490 4 ปีที่แล้ว +252

    "So it was two hours ahead of Greenwich despite having Greenwich" LMAO
    It killed me xD xD xD

  • @queendaisy4528
    @queendaisy4528 7 ปีที่แล้ว +246

    Did anyone else just kind of enjoy watching Tom getting progressively more stressed?

  • @7636kei
    @7636kei 7 ปีที่แล้ว +850

    "So it was two hours ahead of Greenwich despite ... having Greenwich." (circa 3:55)
    And now you know why I prefer to use the term UTC rather than GMT :P

  • @Apollo_Sierra
    @Apollo_Sierra 7 ปีที่แล้ว +326

    as a programming student, this made my eye twitch.

  • @erictaylor5462
    @erictaylor5462 8 ปีที่แล้ว +879

    In other words the answer to "What time is it?" is not as straightforward as we think.

  • @pra6in
    @pra6in 2 ปีที่แล้ว +75

    "Sooner or later, every programmer has to deal with time zones." Today is that day for me.

  • @ErgoCogita
    @ErgoCogita 9 ปีที่แล้ว +6363

    Things were so much simpler when the Earth was flat...

    • @Bram06
      @Bram06 9 ปีที่แล้ว +167

      except the fact that the earth would collapse on itself

    • @coweatsman
      @coweatsman 9 ปีที่แล้ว +232

      The days of "local time" when every place had its own time determined by sextant measuring the highest part of the sun's progress across the sky. A nightmare for the railway timetables which is why timezones replaced local time.

    • @Bram06
      @Bram06 9 ปีที่แล้ว +8

      Runicartist Didn't quite think of that

    • @Bram06
      @Bram06 9 ปีที่แล้ว +3

      aakksshhaayy Maybe...?

    • @PeterAuto1
      @PeterAuto1 9 ปีที่แล้ว +70

      coweatsman the funny thing is, if the earth is flat and gravity works like it does. we will fall to the center. rather than falling off the edge

  • @RainaRamsay
    @RainaRamsay 9 ปีที่แล้ว +237

    This explains something that's been bugging me for a while, which is that the Enigma Decoding process should have started at 2200 or 2300 British time, if the Germans were changing their code at midnight. And yet everyone portrays it as midnight British time. Turns out that's because the British clocks were 1-2 hours ahead of Greenwhich Mean Time.

    • @YuzuDrink
      @YuzuDrink 9 ปีที่แล้ว +29

      Yeah, dealing with time sucks even more than I'd thought it did. And yes, thank goodness for open source software! XD

    • @ragnkja
      @ragnkja 9 ปีที่แล้ว +55

      Wow, you just pointed out a reason why the UK may have wanted to switch to CET during the war.

  • @novai6554
    @novai6554 8 ปีที่แล้ว +657

    And then you get a transmitted radio signal from aliens 0.2 light years away from Earth saying that they need the same software produced for their planet.

  • @notbobby125
    @notbobby125 8 ปีที่แล้ว +315

    Also consider, unified timezones are a really NEW concept. Before the industrial revolution and the train, where at best you get to move at the speed of horse, each town, and city had their own timezones. They measured time by their own tow's solar noon. A 20 minute drive from one town to another for us today was much longer in the 17th century. Depending on the terrain and the quality of roads, that trip could be anything from hours and hours of moving at the speed of a trotting horse, if not an entire day's journey.
    If Tom's hypothetical program was really accurate, he would also have to go out and find out the SOLAR noon for every city on Earth.

  • @mandydax
    @mandydax 10 ปีที่แล้ว +69

    "And then an astronaut on the international space station calls and says that even though they use UTC as their "time zone," since they are traveling at such speed, their clocks run slower, so could you account for that please. And then the 21st century called and ask why everyone is still using telephones to communicate with you."
    This was a really good one. Tom's animated way of telling this tale really did draw me in. I thought there might be a library that others have already programmed, but I never thought how terribly complex it could all get.

  • @steve1978ger
    @steve1978ger 4 ปีที่แล้ว +196

    My mom doesn't know with certainty the day of her birth. That is a bit unusual for Germany, where people take pride in recording everything meticulously. The problem is, she was born in the late 1940ies around midnight-ish, in what was then the Soviet-occupied zone of Germany. And the Soviet government decided that in that year, the way DST works should change, and apparently they made a bit of a mess of it. Historical data disagrees on what time exactly the shift did take place. And even if you could nail down the official time, there would be no way to know whether the midwife's watch would be on the old, or on the new date. Thankfully, astrology seems to be the only field where it causes "actual" problems.

  • @Snoopey0
    @Snoopey0 9 ปีที่แล้ว +2523

    Any chance of getting subtitles for this video, even the TH-cam automatic ones?
    My girlfriend would love to watch and learn, but she's deaf and is having trouble lipreading!

  • @Quasihamster
    @Quasihamster 8 ปีที่แล้ว +176

    "Astronomic time is out of sync with the rest of the world."
    (Tom Scott)

  • @MauveAlerts
    @MauveAlerts 10 ปีที่แล้ว +80

    Two crucial problems not mentioned for the hypothetical app:
    * not all date-times exist in all time zones, e.g. 2013-03-08 02:30:00 does not exist in various USA time zones
    * some date-times are ambiguous in some time zones, e.g. 2013-11-03 01:30:00
    A particularly annoying case of this is when you want to refer to the beginning of the day: midnight (00:00:00) does not always exist.
    Around 8:00 there's an erroneous explanation…
    * UTC times are mapped to integers fairly directly, every day has 86400 distinct seconds
    * A corollary is that leap second times are 'simply' ambiguous (i.e. the same number refers to two points in time, not one)
    * It's usually said that 0 = 1970-01-01 00:00:00 UTC. However, UTC did not exist until 1972, so the times between are not well defined (i.e.

  • @nathanberrigan9839
    @nathanberrigan9839 9 ปีที่แล้ว +119

    In a few hundred years: coordinating time and date across multiple planets.

  • @WarioNumberOne
    @WarioNumberOne ปีที่แล้ว +10

    Coming back to this video as my country (Lebanon) just decided on a whim that daylight saving is postponed until April 20th this year, so that people may eat earlier for Ramadan

  • @uuu12343
    @uuu12343 7 ปีที่แล้ว +27

    "The year started on the 25th march....just to blow your mind"
    Those are the words of a man who has heard everything

  • @roryos
    @roryos 7 ปีที่แล้ว +338

    Let us not forget that is 1752 in September in the UK, we skipped from the 2nd to the 14th

  • @blubird6346
    @blubird6346 ปีที่แล้ว +4

    This is my comfort video; I've watched many many times over the past 5 years

  • @gmodrules123456789
    @gmodrules123456789 ปีที่แล้ว +53

    It used to be that each town had its own timezone, such that 12:00 was when the sun was at its apex.
    Can’t tell if that’s better or worse than what we ended up with lol.

  • @YammoYammamoto
    @YammoYammamoto 6 ปีที่แล้ว +13

    I keep coming back to this episode... it is absolutely brilliant.
    It actually explains any application development, EVER.

  • @pseudonym4893
    @pseudonym4893 10 ปีที่แล้ว +228

    I busted out laughing when he brought up the leap second. Wtf?

    • @MrWontSleep
      @MrWontSleep 10 ปีที่แล้ว +19

      The leap second in IT is a real bitch. It doesn't appear to be a big deal but it will fuck up everthing if you're not prepared^^.

    • @adamlovelace7572
      @adamlovelace7572 10 ปีที่แล้ว +6

      Yeah, leap seconds are real things. It turns out since we invented really atomic clocks that the we have to adjust our time to keep it in sync with them. According to wikipedia we've had 25 leap seconds since 1972.

    • @cybersmythe
      @cybersmythe 10 ปีที่แล้ว +8

      Leap days are about keeping the calendar synchronized with certain astronomical events, those being the equinoxes and solstices. Leap seconds are about keeping the clock synchronized with a certain astronomical event. That event being the local solar noon, which is when the sun is on the meridian wherever you happen to be. (Note that local solar noon usually won't be when the clock says 12, but the idea is to keep it from drifting throughout the day.)
      You see, as time goes on, the rate of earth's rotation varies. Usually, (always? I'm a programmer, not a geodeticist, however it's spelled) it gets slower, but it gets slower at a rate that varies over time. To account for this without varying the length of the second, they add occasional seconds to particular minutes. These are called leap seconds.

    • @pseudonym4893
      @pseudonym4893 10 ปีที่แล้ว +2

      Oh no I totally get it, I just hadn't heard of it before now and the look on his face when he said that was hilarious. I appreciate the explanations, though!

    • @KatzoCorp
      @KatzoCorp 10 ปีที่แล้ว +2

      You are not alone, my friend, that was hilarious

  • @jameslaidler4259
    @jameslaidler4259 7 ปีที่แล้ว +614

    Now suddenly Doctor Who seems less nonsensical. Samoa skips a day? Oh dear.

  • @slowgaffle
    @slowgaffle 4 ปีที่แล้ว +51

    Say their names. Arthur David Olson, Paul Eggert. Absolute heroes.

  • @LoneStarVII
    @LoneStarVII 8 ปีที่แล้ว +885

    i feel like some of these people are messing with him.

  • @evavirydova5919
    @evavirydova5919 ปีที่แล้ว +119

    I rewatch this video once in every half a year, I think, and recommend it to all my friends as it combines very interesting facts with great story pacing.
    Absolute ten-minute masterpiece, thank you.

  • @luckygozer
    @luckygozer 10 ปีที่แล้ว +21

    the amount of phone calls this guy gets is absurd
    you would expect atleast one of them to have send a text or an email..
    amazing video loved it

  • @aoarashi3025
    @aoarashi3025 3 ปีที่แล้ว +6

    The camerawork makes this so much better

  • @trulyhorrific148
    @trulyhorrific148 7 ปีที่แล้ว +70

    Soon after an astronaut from the International Space Station phones Tom and says he forgot to set his watch and asks him what time it is in space.

  • @stensoft
    @stensoft 9 ปีที่แล้ว +80

    This smear (technically called “slew”) is not unique to Google, actually every Linux system uses that, and not just for leap seconds, ie. for adding seconds but for removing seconds when computer clock gets out of sync as well (as long as the difference is a couple of seconds at most). The main reason is that most programs don't even notice when the clock is a bit slower or faster but experience a lot of problems when clock suddenly changes, even when that change is adding seconds.

  • @veni.vidi.reliqui7946
    @veni.vidi.reliqui7946 10 ปีที่แล้ว +59

    This is one of my favorite Computerphile videos. You really begin to feel a programmer's pain...and need for his/her favorite intoxicant of choice! Also, a very interesting insight into time zones, which I never really thought that much about. Entertaining and informative.

  • @smithwillnot
    @smithwillnot 3 ปีที่แล้ว +37

    As front-end developer (kinda full-stack tho xD) I never thought I was gonna have issues with timezones. But here I am, having issue with server and client being in different time zones and I have to deal with "daily" resets... All of this reminded me of this brilliant video.

  • @KurtisRader
    @KurtisRader ปีที่แล้ว +20

    Having watched this a second time, and being a former Google senior SWE who dealt with this issue for an internal (non public facing) app, I agree that dealing with time and timezones arguably the most difficult problem. Far exceeding the difficulty of other problems such as facial recognition.

  • @ScottLahteine
    @ScottLahteine 10 ปีที่แล้ว +43

    My brain shuts down completely every time I need to deal with timezone issues in building web sites. Even if you deal with all the other stuff that Tom described, get your date inputs encoded as Unix timestamps, and "never look at it again" once in a while you will have to deal at the level of an input of a repeating date and time, such as "Every Wednesday in March and April from 6pm to 8pm" and you must encode it and unpack it very carefully. You can't simply calculate the interval and multiply it out over the course of time, or you end up a second, an hour, or days off.
    It turns out very often in making queries you need to refer to something which is as close to the original input as possible, such as "what is the timestamp of the [second] Wednesday in April at 6pm EST?" or "is timestamp X within the specified list of ranges?" So it helps to have a library which can grab the latest data and answer these kinds of requests. Database systems can do timestamp conversions on the fly, but need to be updated frequently to keep up. Then you can store "2012-10-31 12:24:30 PST" and hope for the best, but even this sacrifices some accuracy in cases where the day of the week matters. The smear concept is helpful, and aptly named, the past will all blur together as the internet progresses and reiterates.

  • @SammyHannat
    @SammyHannat 8 ปีที่แล้ว +39

    I love Tom Scott, he is so dedicated to his field

  • @EvolBob1
    @EvolBob1 8 ปีที่แล้ว +242

    I'm surprised anyone had managed to work this out...they should get a medal,or a knighthood - whatever.

  • @vikineo
    @vikineo 6 หลายเดือนก่อน +5

    This gets recommended every year exactly around the daylight savings time end

  • @unvergebeneid
    @unvergebeneid 10 ปีที่แล้ว +54

    I'm not sure whether it was made clear why leap seconds are so much worse than daylight saving time. The reason is that everybody only makes the mistake of using local time for anything other than displaying it to the user only once. You use UTC internally and don't give a damn where on the globe you are and what creative way the locals came up with to butcher time.
    Astronomers on the other hand mess with UTC itself. They actually make time jump a second in either direction, not just the local _display_ of time. And unless you completely ignore that and keep track somehow of all leap seconds that ever happened and constantly factor them in, you're totally screwed.

  • @duncanadelaide3959
    @duncanadelaide3959 9 ปีที่แล้ว +87

    What about Ethiopian local time, which starts with 00:00 at 06:00 Ethiopian standard time, because they consider the day to start at sort of generally sunrise and not midnight?

  • @chrisvighagen
    @chrisvighagen 7 ปีที่แล้ว +481

    AAAAAND THEN(!) The International Standards Institute in France calls and say, "Oh btw we changed the definition of a second, can you deal with that?"
    Not joking, we have changed the reference for seconds from  "1⁄31,556,925.9747 of the tropical year for 1900 January 0 at 12 hours ephemeris time", to "the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium-133 atom" and there is discussion of changing the definition again to something even more precise.
    en.wikipedia.org/wiki/Second#Based_on_a_fraction_of_a_year

  • @AraliciaMoran
    @AraliciaMoran 7 หลายเดือนก่อน +2

    This very video, which I first watched at release, saved me from a bug yesterday. We had a strange bug where both UK time and CET were apparently on the same timezone. Turns out, the original code formatted the date base only on the number of seconds since the start of the day, since "we don't need to display the date, so that's not needed". Turns out, in January 1970, UK and CET were on the same timezone, and not including the date created this issue. Many thanks to Tom and this video, that lives rend-free in the back of my brain.

  • @HeatherSpoonheim
    @HeatherSpoonheim 8 ปีที่แล้ว +54

    Been there, done that. I stored all times as UTC, Gregorian Calendar. Any time older than about 108 years ago was stored in UTC - no time zones. Any time stored older than ~400 years ago was stored as noon (UTC) - to conserve bits and represent relevance. Date/time differences in local events were calculated as accurately as local time zone classes facilitated. Between time zones it went to server, as accurately as most recently provided zone classes could facilitate. Anything over 400 years was just going to provide the difference in days. I lost the contract, threw the manual at the head engineer's head, and became a cook.

    • @HeatherSpoonheim
      @HeatherSpoonheim 8 ปีที่แล้ว +21

      Heather Spoonheim So I finished watching the video (made my comment half way through) and I recommend that you also become a cook. Don't make the mistake of opening your own restaurant, however, or you'll end up speaking to your customers as I spoke to mine - because restaurant customers are the only people whom I've met who are less reasonable than engineers.

    • @rogerwilco2
      @rogerwilco2 8 ปีที่แล้ว +2

      +Heather Spoonheim There is this thing called Jullian Time, which is used both in astronomy and history/archeology. It starts from January 1, 4713 BC, proleptic Julian calendar. It includes all known written records and thus basically how far back humanity needs to be able to tell dates accurately.

    • @RobertSetter
      @RobertSetter 8 ปีที่แล้ว

      +Heather Spoonheim Yeah, the only thing that can truly save you from this type of black hole is limiting scope and adhering to very strict requirements.

  • @ImSquiggs
    @ImSquiggs 8 ปีที่แล้ว +49

    'Leap smear' has got to be one of the most brilliant things I've ever heard of. That is innovative on a whole different level.

  • @bradbilbo6696
    @bradbilbo6696 8 ปีที่แล้ว +65

    I've seen a lot of Computerphile videos but this is one of my favorites. Very funny. I am land surveyor and a few years ago we decided to test standard survey methods to determine location (latitude)against readings provided by a number of different GPS devices ranging in accuracy from 10 meters to 3 cm. Our experiment was to see how accurate stellar observation can be done using 2nd tier survey instruments. Way better than used in early 20th century but still not to the accuracy of top tier instruments. Something that we felt was a standard or a little above of the industry. Anyway the standard formulas all used time zone offsets from Greenwich which we recognized in a very short time how troublesome that can be to determine the time especially when you throw in DST. So we rewrote all the formulas and based our location on a scaled longitude from USGS maps and calculated a time offset from Greenwich. Which in turn let us complete the formula but also provided a means to check our true offset from Greenwich using our computers clock. Then we could utilize the computers clock to reduce our measurements. The point is that you can never be sure what time it really is.

  • @erinclarke2715
    @erinclarke2715 8 ปีที่แล้ว +91

    sooo... Tim Scott is going to be the next Doctor, right?

  • @ShimmeringSpectrum
    @ShimmeringSpectrum 10 ปีที่แล้ว +51

    This is a shining example of the sort of nightmares I'm afraid of having as I delve into my computer science program.
    I also feel like I want to offer the speaker a strong drink.

    • @cybersmythe
      @cybersmythe 10 ปีที่แล้ว +4

      I've been a professional computer programmer for, well, it will be 23 years come February. The complexity of dealing with time has to do with the fact that humans have a set of requirements for their time that is not entirely consistent. One of the things that makes those requirements not entirely consistent is the fact that they change over time. Samoa decides that being on the same day as Australia is more important than being on the same day as the rest of the USA, so they change.
      Of course, the details are important, but the consequences of getting the details wrong are usually small and, if the consequences are significant, then most people deal with that fact by picking a system based on a nonstandard set of requirements designed specifically to reduce the possibility of the error they're worried about. (I don't know if they still do, but NASA used to use "mission elapsed time" as the official time for their missions to avoid this sort of calendar issue.)
      In fact, most of the changes to the time zone file (which is updated about once a month, on average) are about historical times and most people do not care if the results could be an hour off because nobody is sure whether or not Tokyo observed daylight saving time in the summer during the US occupation, just to pick an example that I'm familiar with.
      I've always picked stuff like this to work on because I figure that working on this sort of thing was the nearest thing to guaranteed job security. I don't usually work on time issues, but many communications protocols have many of the same issues for many of the same reasons, and it's all very well and good to say "We'll invent Atom to deal with the mess that RSS has become," but it's a much harder thing to get people to adopt it.

  • @chair547
    @chair547 8 ปีที่แล้ว +406

    the micro nation that I started is 1.234 hours ahead of GMT and it's in the middle of the United States. Try putting that one in.

  • @kathrynblodgett1969
    @kathrynblodgett1969 8 ปีที่แล้ว +36

    I vote for Tom to be the new Time Lord. Hell maybe he already is.

  • @JeekPlays
    @JeekPlays 7 ปีที่แล้ว +33

    Close. Australia actually has 3 different time zones (not including the unofficial Eucla one), which are Western Australia at +8 hours, South Australia and the Northern Territory at +9 1/2 hours and Queensland, New South Wales, the Australian Capital Territory, Victoria and Tasmania at +10 hours.

    • @JeekPlays
      @JeekPlays 7 ปีที่แล้ว +5

      Now that I've seen the whole video and the research you put into it, I can understand why you made that mistake.

  • @drak0an
    @drak0an 3 ปีที่แล้ว +22

    Thanks for the Russian subtitles. This is how I can explain to a Russian historian why my program is so expensive and takes so long to code :)

  • @AceStrife
    @AceStrife 8 ปีที่แล้ว +42

    One is one of the best videos I think he's made.

  • @ethandicks3
    @ethandicks3 ปีที่แล้ว +14

    I have another case to add to different timezones based on who you are and where you live.
    For the most part, Ross Island Antarctica (US McMurdo Station and NZ Scott Base) follows NZ time, including DST even though the sun does not rise or set between Oct and Feb and between Apr and Aug (this simplifies flight schedules to/from NZ). This means that depending on the time of year, Ross Island is GMT+12 or GMT+13.
    The "home office" for Scott Base is NZ, so no problems there. Most of the activities at McMurdo Station were coordinated through Denver CO (Mountain Time, GMT-6 or GMT-7). This makes it somewhat difficult to schedule meetings between McMurdo and Denver, so the bosses in Denver decided that for one winter, McMurdo would go on Denver time, an 18 hour shift.
    What this did was to take a town of a couple hundred people and push them through an 18 hour flip in time from a town that was walking distance away who didn't change their clocks, then a few months later, an 18-hour shift the other way.
    It was a disaster and they never did it again.
    As an aside, I got involved with working on the Open Source tzlib because when I was at McMurdo in the mid-1990s, my workstation had the wrong time one Summer day. Turns out NZ changed what week they flipped to DST and my OS didn't have an update that knew about the change (a case covered in the video). I dug into how timezones worked in software and ended up making a contribution to the library to tell time more accurately in Antarctica.
    So... that bit in the video where you thank the people who wrote that spaghetti code and never look at it again? You're welcome.

  • @SoraIroNaKISEKI
    @SoraIroNaKISEKI 7 หลายเดือนก่อน +3

    The company I work at somehow decided that 1sec = 1024ms in all our product… I can feel the pain.

  • @anguscos4506
    @anguscos4506 7 ปีที่แล้ว +389

    and then north Korea calls and says by the way for us its the year 105, have fun

  • @TH3KARMACHARGER
    @TH3KARMACHARGER 7 ปีที่แล้ว +8

    I really enjoy that as Tom gets more and more distress, the camera zooms in more and more, and now I too am worried about leap-seconds.

  • @timbo9644
    @timbo9644 ปีที่แล้ว +2

    I can't believe I've been coming back to this video for 1/4 of my life. I'll be coming back to this the rest of my life. Or until YT ends, whichever comes first.

  • @samiraperi467
    @samiraperi467 7 ปีที่แล้ว +119

    Wibbly wobbly timey wimey zones.

  • @StuffByDavid
    @StuffByDavid 10 ปีที่แล้ว +49

    Been there. Cried at that.

  • @markepstein7954
    @markepstein7954 10 หลายเดือนก่อน +9

    Cool to be 9 years late to a video but you can thank Arthur David Olson for creating and Paul Eggert, a current professor at UCLA (a quite difficult one at that) for currently maintaining, the tz database which Tom refers to at the end as the open source code that's already done it. Absolute legends.

  • @ImSquiggs
    @ImSquiggs 9 หลายเดือนก่อน +1

    This is one of my favourite videos on the internet. If any programmer starts talking about writing timezome code they are getting this linked to them from me without exception.

  • @Greenbearls
    @Greenbearls 7 ปีที่แล้ว +234

    Wow. That's a programmer in a rant. :/

  • @ZachHixsonTutorials
    @ZachHixsonTutorials 10 ปีที่แล้ว +80

    this is by far my favorite computerphile video!

  • @ebbingtime
    @ebbingtime 6 ปีที่แล้ว +20

    They call them the first, the constructors, the builders. Men who stepped into the very realm of insanity itself, and returned.
    And this was the first spaghetti code.

  • @zuighemdanmaar752
    @zuighemdanmaar752 ปีที่แล้ว +43

    Wow, Tom is a really good explainer on advanced and obscure topics. He should start a TH-cam channel!

  • @nbooth
    @nbooth ปีที่แล้ว +16

    Timekeeping is like cryptography: DO NOT ROLL YOUR OWN. Use a well tested, well vetted library, and keep it updated.

  • @KingTaltia
    @KingTaltia 10 ปีที่แล้ว +48

    After a certain point he sounded like The Doctor going off on a tangent.

    • @HenkJanBakker
      @HenkJanBakker 10 ปีที่แล้ว +4

      Tom Scott = Time Lord

  • @johnzildgulf3604
    @johnzildgulf3604 7 ปีที่แล้ว +32

    Don't forget that the United States went on "Permanent" Daylight Saving Time from January 6, 1974, to February 23, 1975. Also Arizona doesn't follow Daylight Saving Time but the Reservations in Arizona do and each Indiana county decides if it will go to Daylight Saving Time or not.

  • @joeljuca
    @joeljuca 2 หลายเดือนก่อน +2

    Many years after watching it for the first time, here I am: coming back to grab its URL and share with my team who're dealing with timezone issues at this right moment.

  • @jmalmsten
    @jmalmsten 7 ปีที่แล้ว +55

    I've seen quite a few videos about you explaining maddening phenomenas. And I am starting to see a pattern here... basically... all is fine... until that first time you put in an exception... then the rabbit-hole opens and devours you with arcane and esoteric circumstances. It is almost like walking into a library and in the periphery you notice a book nobody has opened for centuries. It seems harmless enough but when reading it you realize it's the Necronomicon. And you have to beg the elder gods for forgivness. But no... the only way out is insanity.
    And I kind of lost track of the direction of this analogy...

  • @elton1981
    @elton1981 10 ปีที่แล้ว +41

    AAAAND THEEEN you get a call from Sweden and you're told that in 1712 February had 30 days in their country.

  • @MrRubik234
    @MrRubik234 9 ปีที่แล้ว +7

    7:20 *tour guide voice* And if you look to your right, you can see Tom Scott going insane over the complications of time zones.

  • @The_Pariah
    @The_Pariah 2 ปีที่แล้ว +10

    Tom Scott is just so damn enjoyable to listen to.
    I genuinely enjoy listening to him talk. Especially when he's teaching stuff.
    Computerphile is such a damn good channel!

  • @johnappleseed7450
    @johnappleseed7450 ปีที่แล้ว +4

    This is probably why Riley from National Treasure knew exactly when Daylight Savings Time started.

  • @himaro101
    @himaro101 5 ปีที่แล้ว +9

    Watched this when it first came out, still one of the best Tom Scott rants

  • @SamuelBoshier
    @SamuelBoshier 8 ปีที่แล้ว +93

    5:55 sounds like the start of a bad joke.

  • @bhaaratsharma6023
    @bhaaratsharma6023 2 ปีที่แล้ว +8

    When I first started my IT career, one of the first features that I had to work on was to manage daylight savings and timezones. I was overwhelmed by the complexity.

  • @martiddy
    @martiddy 7 ปีที่แล้ว +12

    8:34 you can tell by the sigh that he knows that for experience 😁