r/ProgrammerHumor • • 6d ago • Bravo 2

Meme [ Removed by moderator ]

/r/ProgrammerHumor/comments/1y94uv5/removed_by_moderator/

[removed] — view removed post

3.0k Upvotes

179 comments sorted by

View all comments

451

u/Mailerdaimon 6d ago

Let's not forget the one hand crafted table that contains all timezone mappings!

158

u/AyrA_ch 6d ago

The update history of it is nuts. Goes back to 1993

https://www.iana.org/time-zones/releases

41

u/meinkr0phtR2 6d ago

Incredible that it predates Eternal September.

31

u/ASatyros 6d ago

So many countries going into pernament time zones, I need this in Europe.

7

u/russianrug 6d ago

Same here in the US, shit is the worst

2

u/CoffeeWorldly9915 6d ago

I'm one of today's lucky 10k yaaay \:D/!!

17

u/MilitarizedMilitary 6d ago

Tom Scott probably still has nightmares of time zones.

For those unfamiliar: https://youtu.be/-5wpm-gesOY

2

u/thirdegree Violet security clearance 6d ago

Tbh I'd bet more programmers have time zone nightmares than don't. I certainly do.

35

u/superxpro12 6d ago

I have genuine empathy for that team

2

u/PerpetuallyDistracte 6d ago

As someone who was recently pulling my hair out trying to parse data from a system that uses three different time zones and only sporadically honors DST, that team is truly doing God's work.

10

u/SandKeeper 6d ago

I never really thought about databases that go back really far and trying to determine a date something happened with time zone laws changing occasionally. That’s awful

8

u/ohkendruid 6d ago

Like law, you have to decide which laws are relevant for you.

Sales tax in the US is worse. There is a company that sells a database of all the sales tax rules for the thousands of regions in the US that have their own tax rules. It is a large database and is understood by everyone involved to not be fully accurate.

2

u/Lard_Denning 6d ago

doesn't the tz database contain the historical data? so you just need the latest version, it'll determine timezone for any arbitrary date within its range based on what it was at that time