On 2023-01-08, Peter Flass <
peter...@yahoo.com> wrote:
> Ahem A Rivet's Shot <
ste...@eircom.net> wrote:
>
>> On 7 Jan 2023 09:52:57 GMT
>> Jorgen Grahn <
grahn...@snipabacken.se> wrote:
>>
>>> But recently I've had to use the Qt library's QDateTime[1] type, and
>>> it occurred to me that this must be how people had to work before
>>> someone (in the 1960s?) said "let's stop this nonsense and just count
>>> seconds since some T=0".
>>
>> Late 60s given that the unix epoch is in 1970 (just).
>>
>>> A QDateTime is:
>>> - a date
>>> - a time-of-day
>>> - a time zone
>>>
>>> and it's easy to get wrong. Not so much at New Year, but when you
>>
>> It's impossible to get right - places like Ireland and the UK
>> switch timezone twice a year while most US timezones shift their offset from
>> UTC twice a year. Then there's the whole business of the missing/duplicated
>> hour as the clocks go forwards/backwards.
>
> I think Indiana is, or was, split between two timezones; Arizona doesn’t
> observe DST; based on what I saw New Years, it appears Puerto Rico is 1/2
> hour ahead of New York,; China is all one timezone, and there’s lots more
> of such F*ckishness.
Saskatchewan doesn't observe DST as well. Newfoundland and Labrador are
(is?) half an hour ahead of Halifax.
>>> start messing with the time zone, you have to remember which function
>>> preserves the time while shifting the time zone, and which function
>>> instead preserves the date and time-of-day.
>>
>> Then you cross a DST boundary and all the bugs come to the surface.
I think the best thing would be to eliminate DST entirely. No more
semi-annual clock changes, no subtle bugs, and fewer road accidents
due to people's circadian rhythm being disturbed. Unfortunately,
here on the west coast of North America, most people are pushing
to make DST permanent. So much for the sun being overhead at noon.
--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgi...@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.