Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2528

8-bit acorn hardware • Re: Time & Config.

$
0
0
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.
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.

But looking at 2000 onwards, things are a lot more sane :-) Offsets are xx00, xx30 and xx45. But do beware that some places are +14 (ie Pacific/Tongatapu during DST).

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
Heh, I just spotted the "-00" entry and I think the Antarctic is trolling us, literally! A placed called Troll went from -00 to +00 and its daylight savings is +2 hours

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



Viewing all articles
Browse latest Browse all 2528

Trending Articles