Hacker GitHub

← All repos

eggert/tz

View on GitHub ↗ ★ 1,928 C

Time zone database and code

46 mentions on Hacker News by 38 people: 3 stories, 43 comments · first 2014-02-21 · latest 2026-10-29

Mentions per year 46 mentions · busiest year 2026 (9)
20082026
  1. The diff is 23 lines long, the vast majority of which is documentation: https://github.com/eggert/tz/commit/5b5b39dae16f787740b8c0d4...
  2. They're all over it before we hear about it: 3 days ago: https://github.com/eggert/tz/commit/5b5b39dae16f787740b8c0d4... It's not even the latest change to the library!
  3. …-- Robertson Davies, The diary of Samuel Marchbanks, Clarke, Irwin (1947), XIX, Sunday * https://github.com/eggert/tz/blob/main/northamerica#L75
  4. …fall, but IANA TZ database still hasn't made the update because of the uncertainty. IANA revert: https://github.com/eggert/tz/commit/afcea8761543ac97aeee6399... https://www.cbc.ca/news/canada/british-columbia/what-time-is...
    comment by kelseydh · 2026-06-23 · in British Columbia, Time Zones, and Postgres
  5. …dates and times too! Morocco has some complex logic around Ramadan... which is a moveable festival. https://github.com/eggert/tz/blob/main/africa#L854 Rule Morocco 2026 only - Feb 15 3:00 -1:00 - Rule Morocco 2026 only - Mar 22 2:00 0 -…
  6. …a man who made his own: https://archive.aramcoworld.com/issue/196902/dinner.at.when.... Linked from https://github.com/eggert/tz/blob/main/asia#L3818
  7. …fiat to change the timezone for a political enclave within another one that doesn't have a TLD. ( https://github.com/eggert/tz/blob/main/northamerica#L821 ) This also describes the compromises in the design of the system to accurately…
  8. ▲ 3
    IANA tz (and POSIX) cannot add British Columbia's new Pacific Time (PT) timezone
    story by kelseydh · 2026-03-04 · 1 comment
  9. …nice in today's world. --- This is also kind of what happens in China (with a complicated history). https://github.com/eggert/tz/blob/main/asia#L272 https://en.wikipedia.org/wiki/Time_in_China UTC+08:00 is observed throughout the country…
  10. This change https://github.com/eggert/tz/commit/baea52df7ac9c4b53857556f... was a huge pain in my ass in 2013. I was working in Libya on voter registration tools with the UN and the High National Election Commission. The government decided…
    comment by jlev · 2025-09-11 · in How the tz database works (2020)
  11. I've found the comments in the database files (e.g. North America https://github.com/eggert/tz/blob/main/northamerica ) to be an interesting documentation of the history of the definition of time for various areas. For example, Indiana…
    comment by shagie · 2025-09-11 · in How the tz database works (2020)
  12. …of Friday 19th of Aban (=1978-11-10), # the country's time will be pulled back half an hour. From https://github.com/eggert/tz/blob/main/asia#L1503 . Pretty sure we can find a lot more oddities that are way worse.
    comment by johnisgood · 2025-06-25 · in How to Think About Time in Programming
  13. …NewNewYork by edict of some new global despot, the IANA will just alias the two names together. See https://github.com/eggert/tz/blob/main/backward for all the deprecated zones.
    comment by jitl · 2025-01-31 · in JavaScript Temporal is coming
  14. …[3] https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/DS... https://github.com/eggert/tz/commit/bb203f1bb0b6cd4bb2b08f25... https://github.com/eggert/tz/blob/bb203f1bb0b6cd4bb2b08f2560...
    comment by JW_00000 · 2025-01-30 · in JavaScript Temporal is coming
  15. …it refuses to calculate timezone transitions occurring before the Big Bang. The commit message at https://github.com/eggert/tz/commit/b22d459a367f4d01b10f6f6b... says: > For example, Glib computes Sao Paulo time stamps as if Brazil's…
  16. …of comments about the Europe/Dublin time zone in the europe file, including one quote from Ulysses: https://github.com/eggert/tz/blob/7748036bace8562b9c047f368c...
    comment by extraduder_ire · 2024-10-30 · in Australia/Lord_Howe is the weirdest timezone
  17. I think the old Riyadh timezone is the weirdest personally https://github.com/eggert/tz/blob/be62d5918223b4df209cc94163...
  18. Time Zone Database https://github.com/eggert/tz/graphs/contributors https://en.wikipedia.org/wiki/Tz_database
  19. It wasn't! See https://github.com/eggert/tz/blob/main/asia
    comment by madcaptenor · 2024-08-21 · in The Discovery of the Celendrical Date Line
  20. Timezones are political and economic statements (and sometimes even religious - https://github.com/eggert/tz/blob/main/africa#L853 ). Things like China being all one timezone or India changing to IST after declaring independence…
  21. …it's capable of handling UTC offsets at least to a second level, if not fractional seconds. [0] https://github.com/eggert/tz
  22. …that doesn't exclude that file will simply treat the old name as an alias for the new name. [0] https://github.com/eggert/tz/commit/e13e9c531fc48a04fb8d064a...
    comment by LegionMammal978 · 2023-08-31 · in RFC 3339 vs. ISO 8601
  23. …but Ireland technically does it the other way around -- a distinction relevant only to computers. https://github.com/eggert/tz/blob/c3e966c59b02b1f47f0b7b0e4a... The only other timezone that currently has a non-1h offset for DST --…
  24. I see 3 countries with negative DST in their RULE records: * Eire after 1971: https://github.com/eggert/tz/blob/main/europe#L526 * Morocco after 2019: https://github.com/eggert/tz/blob/main/africa#L928 * Namibia between 1994 and 2017:…
  25. …including a note about how clocks lost 6 minutes a day because PG&E changed AC from 60 to 59.5 Hz: https://github.com/eggert/tz/blob/71faa2a55db2c9f21f4099b58c...
  26. Here's the tzdata: https://github.com/eggert/tz/blob/71faa2a55db2c9f21f4099b58c... Looks like the negative DST has already caused problems in the past and applications that can't handle it (ICU & OpenJDK) have to build tzdata as per the…
  27. It looks like this is tracked as "Australia/Eucla" in the IANA TZ database: https://github.com/eggert/tz/blob/main/australasia#L30 You can type the following to see the current time there: $ TZ=Australia/Eucla date Thu Oct 27 10:36:45…
    comment by bxparks · 2022-10-27 · in Australia's weird little time zone (2008)
  28. …I think you'll find a great many systems already have a way of distributing DST rule updates. [1] https://github.com/eggert/tz/blob/main/europe#L4014
  29. And no entry in the timezone database :-( https://github.com/eggert/tz/search?q=athos But then if they have no computers, maybe that doesn't matter.
  30. …the rest of the world, but in S. Arabia it was once common to set your watch to 6 am at sunrise: https://github.com/eggert/tz/blob/43dbb43381487a253fdc4462c0...
    comment by bellyfullofbac · 2021-10-20 · in The tight-knit time zone data maintenance community
  31. …comments within. There is quite a bit of detailed commentary and sourcing for the actual offsets. https://github.com/eggert/tz/blob/43dbb43381487a253fdc4462c0... for Mauritius is representative
    comment by TAForObvReasons · 2021-10-20 · in The tight-knit time zone data maintenance community
  32. Searching for Ramadan in https://github.com/eggert/tz/blob/main/asia and https://github.com/eggert/tz/blob/main/africa is an interesting read. Morocco textual history is at https://github.com/eggert/tz/blob/main/africa#L628 and the…
    comment by shagie · 2021-09-23 · in Samoa Scraps Daylight Saving Time
  33. …in the tz DB is a little window into the questionable cultural achievement that is local time: https://github.com/eggert/tz/commit/e15ef79a603a2fba89ad8f38...
    comment by lolc · 2021-02-10 · in Timezone Bullshit
  34. …can (indirectly) affect the future of leap seconds than probably any other group else. [1] https://github.com/eggert/tz/blob/master/NEWS
    comment by lifthrasiir · 2020-11-19 · in Leap second hiatus
  35. …them at the 'America' level. # So we reluctantly put them all in a subdirectory 'America/Indiana'. https://github.com/eggert/tz/blob/e6c1f0e7daa0b6c5131b2976c6...
  36. https://github.com/eggert/tz/blob/master/northamerica is also a fun read.
  37. …the political side, a read through the comments in the timezone DB can be constructive, such as: https://github.com/eggert/tz/blob/master/europe It'll really show you what anyone who thinks they can convince the whole world to change is up…
    comment by jerf · 2019-07-01 · in The Day of Two Noons
  38. ▲ 1
    Tzdata: Morocco switches from +00/+01 to permanent +01 effective 2018-10-27
    story by localguy · 2018-10-27 · 0 comments
  39. You linked to a copy embedded in pytz. Upstream database is here: https://github.com/eggert/tz
    comment by jwilk · 2018-07-28 · in News for the tz database
  40. ▲ 121
    News for the tz database
    story by Sir_Cmpwn · 2018-07-27 · 28 comments
  41. …of the next commit to tzdata would say... Edit: links: https://www.iana.org/time-zones Repo: https://github.com/eggert/tz/commits/master
  42. …the documentation done in the IANA timezone dataset (historical references of Finland shown here): https://github.com/eggert/tz/blob/master/europe#L1213
  43. They do. The problem is that the rules of DST change over time (sometimes at the very last minute https://github.com/eggert/tz/commit/868f3528a9fd60491439ce45... ) and can lead to all sorts of date math bugs when comparing timestamps…
  44. That linked story about Michigan's -5:32:11 offset is hilarious https://github.com/eggert/tz/blob/master/northamerica#L979
  45. You could Watch https://github.com/eggert/tz or subscribe to this mailing list https://www.iana.org/time-zones
    comment by mildweed · 2015-10-29 · in Time zone news
  46. …with the tz shapefiles and animate it a la xearth.[^2] [^1]: http://efele.net/maps/tz/world/ [^2]: https://github.com/eggert/tz/commit/a9ac0f6938c416f724a52115...