Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    The Problem with Time & Timezones - Computerphile

    Computerphile

    12 HN recommenders · recommended in 18 months, 2014–2026

    YouTube

    10:13 · 4.4M views · Dec 30, 2013

    Tom Scott explains for Computerphile why handling time and timezones in code is so hard, walking through a simple web app that computes how long ago something happened. It covers the quirks of timezones and calendars and ends in an exasperated rant.

    It is the go-to funny, accessible explanation of why you should never implement datetime handling yourself, linked in nearly every timezone thread.

    Software Engineering & LanguagesSoftware (other)Python, Ruby & scripting languages
    1. 34:21
      Plover: Thought to Text at 240 WPMNext Day Video109K views • 13 years ago
    2. 1:07:22
      Invited Talk - Guy SteeleClojureTV39K views • 9 years ago
    3. 42:59
      "How NOT to Measure Latency" by Gil TeneStrange Loop Conference119K views • 11 years ago
    4. 6:30
      You Lose an Hour of Sleep to Save $4CGP Grey13M views • 15 years ago
    5. 40:55
      "Controlling Time and Space: understanding the many formulations of FRP" by Evan CzaplickiStrange Loop Conference69K views • 12 years ago
    6. 1:10:05
      Are We There Yet - Rich HickeyZhang Jian24K views • 7 years ago
    7. 57:05
      Keynote: Begin...End?David Beazley9.5K views • 5 years ago
    8. 1:10:00
      The Mental Game of Python - Raymond HettingerSF Python131K views • 7 years ago
    9. 46:10
      Understanding the Python GILDavid Beazley127K views • 14 years ago
    10. 1:00:40
      Dmitry Vyukov — Go scheduler: Implementing language with lightweight concurrencyHydra47K views • 7 years ago
    11. 44:03
      Google Developers Day US - Python Design PatternsGoogleDeveloperDay90K views • 19 years ago
    12. 44:35
      Object-Oriented Programming is BadBrian Will2.6M views • 10 years ago
    13. 11:25
      The Worst Typo I Ever MadeTom Scott6.4M views • 6 years ago
    14. 1:12:12
      2017 ACM PPoPP Keynote: It's Time for a New Old LanguageGuy Steele6.8K views • 9 years ago
    15. 1:03:31
      Brian Goetz - Stewardship: the Sobering PartsClojureTV39K views • 11 years ago
    16. 36:31
      Hey Underscore, You're Doing It Wrong!InfoQ141K views • 13 years ago
    17. 45:50
      "The Mess We're In" by Joe ArmstrongStrange Loop Conference398K views • 12 years ago
    18. 43:04
      "Stop Writing Dead Programs" by Jack Rusher (Strange Loop 2022)Strange Loop Conference468K views • 4 years ago
    19. 26:53
      What the heck is the event loop anyway? | Philip Roberts | JSConf EUJSConf3.8M views • 12 years ago
    20. 9:16
      Floating Point Numbers - ComputerphileComputerphile2.5M views • 12 years ago

    20 comments from Hacker News

    1. @tehmacoJan 2015· in “A positive leap second will be introduced at the end of June 2015”

      This will probably resonate with people here[1]. A brilliant video by Tom Scott for Computerphile, where he starts to explain what coding timezones correctly is like and by the end of it is in full polite-mini-rant-mode :D [1] this video

      Strongly recommendsView on HN
    2. @yborisFeb 2021· in “Timezone Bullshit”

      Obligatory post to Computerphile episode about Timezones - a must watch for developers just starting out with Timezones this video

      Strongly recommendsView on HN
    3. @jonathansampsonDec 2021· in “Goodbye Brave”

      Great question! Dates and times are one of the most loathed obstacles in writing software that needs to work a particular way across millions of devices situated all across the globe in different regions and time zones. In our case, we had a bit of code that aimed to measure the time until midnight/tomorrow. But when clocks change at midnight (jumping forward or backward), you can wind up with days that appear to be longer than 24 hours in length. And when a day is more than ~24hr in length, you wind up with unexpected answers to seemingly simple math equations. A bit of logic, responsible for setting up a timer, wound up scheduling numerous timers when our 'How long until tomorrow' code began returning negative numbers. That set of unintended timers locked-up the application itself. You can see our issue for the behavior here: [LINK] . For 10 minutes of anxiety, check out 'The Problem of Time & Timezones' from Tom Scott of Computerphile: this video . It's a fantastic summary of the issues programmers face when dealing with time :) Sampson (Brave Team)

      RecommendsView on HN
    4. @coder543Feb 2020· in “Measuring Latency in Linux (2014)”

      That’s a hard question regardless of programming language. One commonly referenced YouTube video about time that explains why this is hard: this video A reasonable first approximation of a solution would be to just check every second (or minute, or hour, depending on requirements) whether the current system time is later than the scheduled time for any pending events. Then you probably want to make sure events are marked as completed so they don’t fire again if the clock moves backwards. Trying to predict how many seconds to sleep between now and 3pm on Saturday is a difficult task, but you can probably use a time library to do that if it’s important enough... but what happens when the government suddenly declares a sudden change to the time zone offset between now and then? The predictive solution would wake up at the wrong time.

      RecommendsView on HN
    5. @wolrahMar 2026· in “The surprising whimsy of the Time Zone Database”

      That might work for the current form of the country-specific time zones officially acknowledged by countries that exist in TLD form, but the tz database contains many more current time zones more importantly piles of historical time zones. Representing just the historical forms of currently recognized time zones in DNS would be a mess, without even getting in to those that are not associated with a country that currently exists and has a TLD. edit: This is a great video explaining a lot of the reasons why time zones are nowhere close to as straightforward as you may think: this video

      RecommendsView on HN