Historically things were a LOT more complicated. I just did a dump of the zoneinfo database on my (old) CentOS 7 machine and there are some fun entries; e.g. Pacific/Norfolk was +1112 offset in 1950.I'm fairly certain that all timezones are a multiple of 15 minutes - at least, from memory of reading up on the Unix locale system - so you would only need two more bits in the timezone information.
But looking at 2000 onwards, things are a lot more sane

Time handling is one of the _big_ problems in computing! So so so many rules have exceptions!
Offsets seen in the tzdata database:
Code:
+00+01+02+03+0330+04+0430+05+0530+06+07+08+0845+09+0945+10+1030+11+1130+12+1245+13+1345+14-00-01-02-03-04-0430-05-06-10-11
Code:
Antarctica/Troll Fri Feb 11 23:59:59 2005 UTC = Fri Feb 11 23:59:59 2005 -00 isdst=0 gmtoff=0Antarctica/Troll Sat Feb 12 00:00:00 2005 UTC = Sat Feb 12 00:00:00 2005 +00 isdst=0 gmtoff=0Antarctica/Troll Sun Mar 27 00:59:59 2005 UTC = Sun Mar 27 00:59:59 2005 +00 isdst=0 gmtoff=0Antarctica/Troll Sun Mar 27 01:00:00 2005 UTC = Sun Mar 27 03:00:00 2005 +02 isdst=1 gmtoff=7200Antarctica/Troll Sun Oct 30 00:59:59 2005 UTC = Sun Oct 30 02:59:59 2005 +02 isdst=1 gmtoff=7200Antarctica/Troll Sun Oct 30 01:00:00 2005 UTC = Sun Oct 30 01:00:00 2005 +00 isdst=0 gmtoff=0
Statistics: Posted by sweh — Mon Jan 20, 2025 11:46 pm