News for hackers. Stuff that matters.
Re:Infinite loop in macOS Night Shift in the summer near the... by ergothus on Friday June 28, 2019 @06:08PM (#20309166)
I think you're right, but that the tone I read in your words would prevent people from improving.

Rather than "I'm so clever" it is more "this isn't complicated". One can argue they mean the same thing, but I'd say they mean different things if comparing to an outside scale. The solution to thinking you're so clever is to reduce your arrogance, but the solution to thinking problems are simple is to stop assuming any problem is simple.

Re:Infinite loop in macOS Night Shift in the summer near the... by inlined on Friday June 28, 2019 @06:35PM (#20309350)
My favorite incorrect fact is that there are 24 timezones. In fact, the number of offsets from UTC fluctuates throughout the year (at least last I worked on scheduling in 2012. Back then it was either 39 or 40 depending on DST)
Re:Infinite loop in macOS Night Shift in the summer near the... by jws on Friday June 28, 2019 @10:26PM (#20310417)
DST rules are just insane. I'm responsible for some code where I just drew the line and 40 some odd people in one of the Antarctic stations are just going to have to live with wrong time part of the year if they ever run my code. I'm not adding another code path and test case just because these people wanted their own special concept of time. I don't remember the pattern, but I think it was maybe a daylight savings time and then an extra one stacked in the middle.
Re:Infinite loop in macOS Night Shift in the summer near the... by petre on Saturday June 29, 2019 @12:09AM (#20310769)
We have endless problems with DST as well. I can't wait for the EU directive that abolishes it. Russia dropped it years ago. We'll still have to support past times and other timezones though.
Re:Infinite loop in macOS Night Shift in the summer near the... by meepso on Saturday June 29, 2019 @05:42AM (#20311674)
I wonder how long time it will take to forget DST if it is abolished. Will that messy spaghetti code be ripped out and never seen again.
Re:Infinite loop in macOS Night Shift in the summer near the... by jon-wood on Saturday June 29, 2019 @06:58AM (#20311891)
Most standard libraries still have support for the Julian calendar. That stuff is never going away.
Re:Infinite loop in macOS Night Shift in the summer near the... by jki275 on Sunday June 30, 2019 @08:32AM (#20317858)
Julian calendar is still used by the US Navy. Every supply department office you go into has a conversion table up on the wall.
Re:Infinite loop in macOS Night Shift in the summer near the... by mkl on Saturday June 29, 2019 @08:08AM (#20312119)
I doubt it's "most". Python, Javascript, and C++ don't seem to. The only ones I found that do seem to are C# and Java.
Re:Infinite loop in macOS Night Shift in the summer near the... by inlined on Saturday June 29, 2019 @04:46PM (#20314684)
I just got a ruby gem from someone who actually made tables on the stuff. I made a script that cut out far past and future times to lower loading time from 10m to 30s and figured I could upgrade the gem to leverage an expert’s research as timezones changed (e.g. India changing zones)
Re:Infinite loop in macOS Night Shift in the summer near the... by mason55 on Friday June 28, 2019 @07:04PM (#20309540)
Yeah I always feel like a jerk when people open tickets in the summer saying “Please do this at #:## EST” and I have to reply “thanks for providing a time but it’s currently EDT in NYC. Is that what you meant?”
Re:Infinite loop in macOS Night Shift in the summer near the... by wil421 on Friday June 28, 2019 @10:48PM (#20310496)
No reason to be snarky with people. They mean whatever time it currently is or will be.
Re:Infinite loop in macOS Night Shift in the summer near the... by heavenlyblue on Saturday June 29, 2019 @08:51AM (#20312293)
Are you sure though?

If they copied that date from some automated system it might as well be any of these.

Humans usually say “New York time”.

Re:Infinite loop in macOS Night Shift in the summer near the... by eridius on Sunday June 30, 2019 @01:50AM (#20316589)
In my experience, humans never say "New York time", or "San Francisco time", or anything like that, they say "EST" and "PST" regardless of whether daylight saving's is on.

I'm guilty of this too, since I can never remember which part of the year constitutes "on" and which is "off", only where the boundaries are. If I stop and think I can usually remember "spring ahead is turning it on", but never off the top of my head.

Re:Infinite loop in macOS Night Shift in the summer near the... by lopmotr on Saturday June 29, 2019 @04:03AM (#20311391)
That's only slightly worse than how I feel when people say that something's happening in the summer when it's actually winter where I live.
Re:Infinite loop in macOS Night Shift in the summer near the... by michaelmior on Friday June 28, 2019 @08:17PM (#20309940)
I hear you. It almost always is what people meant but most of us (myself included) rarely think about the distinction.
Re:Infinite loop in macOS Night Shift in the summer near the... by jimktrains2 on Friday June 28, 2019 @09:00PM (#20310102)
I've just gotten to saying ET (or equivalent) all year-round .
Re:Infinite loop in macOS Night Shift in the summer near the... by macintux on Friday June 28, 2019 @09:13PM (#20310159)
That’s the battle I fight: persuading people that saying “Eastern” is accurate and sufficiently precise. Precise and inaccurate is a bad combination.
Re:Infinite loop in macOS Night Shift in the summer near the... by adrianmonk on Friday June 28, 2019 @06:54PM (#20309472)
That becomes fairly obvious when you consider Arizona doesn't observe DST, but Utah is the same longitude (lies directly north) and does observe DST.
Re:Infinite loop in macOS Night Shift in the summer near the... by filoleg on Friday June 28, 2019 @07:10PM (#20309576)
Yep. And there also small regions that observe daylights savings WITHIN regions that don’t observe daylight savings WITHIn regions that do observe it. For example, in Indiana it is on a per county basis[1].

1. https://www.timeanddate.com/time/us/indiana-time.html

Re:Infinite loop in macOS Night Shift in the summer near the... by adrianmonk on Friday June 28, 2019 @07:28PM (#20309683)
Speaking of within, I fibbed slightly about Arizona.

https://en.wikipedia.org/wiki/Time_in_Arizona

The Navajo Nation is within Arizona's boundaries, and it does observe DST. And the Hopi Reservation is within the Navajo Nation, and it does not observe DST.

And since Arizona is surrounded by California, Nevada, Utah, New Mexico, and Mexico, all of which do observe DST, that means you have an island of no-DST (Hopi) inside an island of DST (Navajo) inside an island of no-DST (Arizona) inside an area of DST (adjoining US states plus Mexico).

Re:Infinite loop in macOS Night Shift in the summer near the... by bpye on Friday June 28, 2019 @09:54PM (#20310324)
How did we screw up time zones so much?
Re:Infinite loop in macOS Night Shift in the summer near the... by SllX on Saturday June 29, 2019 @12:39AM (#20310844)
We invented and then implemented time zones and then invented and then implemented daylight savings time; arbitrarily and with arbitrary laws and treaties.

There are days where I think I should go back to a mechanical watch and adjust the time each day at high noon. It won’t agree with anyone else’s time most of the time, but at least it will be correct.

Re:Infinite loop in macOS Night Shift in the summer near the... by jfk13 on Saturday June 29, 2019 @05:31AM (#20311649)
But won't it be wrong as soon as you start travelling east or west, though?
Re:Infinite loop in macOS Night Shift in the summer near the... by danaliv on Friday June 28, 2019 @09:04PM (#20310110)
Well that's almost enough to make one think daylight saving time is a bunch of cracked-up nonsense!
Re:Infinite loop in macOS Night Shift in the summer near the... by macintux on Friday June 28, 2019 @09:14PM (#20310166)
Somewhere I have an old book which includes time zone maps for Indiana in the 50s and 60s. Every single year there were changes.
Re:Infinite loop in macOS Night Shift in the summer near the... by foobarchu on Monday July 01, 2019 @09:02PM (#20331210)
There's also half hour timezones, found at least in India, and I think a couple quarter hour zones.
Re:Infinite loop in macOS Night Shift in the summer near the... by jpindar on Saturday June 29, 2019 @10:21AM (#20312735)
And that it's possible for two places to be more than 24 hours apart.
Re:Infinite loop in macOS Night Shift in the summer near the... by stcredzero on Friday June 28, 2019 @06:51PM (#20309454)
but that the tone I read in your words would prevent people from improving

Are people really that fragile? Yes and no.

The solution to thinking you're so clever is to reduce your arrogance, but the solution to thinking problems are simple is to stop assuming any problem is simple.

Isn't humility the answer to both? Someone should develop a humility course for programmers involving an "ultra drone," writing the date/time library for it, and some simulated world test cases. Such "humility exercises" are found in various disciplines. There's one for CIA analysts, involving analyzing US Civil War sites via sat photos, then having them visit in person.

Re:Infinite loop in macOS Night Shift in the summer near the... by ergothus on Friday June 28, 2019 @07:16PM (#20309609)
> Are people really that fragile?

It's not fragility, so much as perspective.

When you are thinking something is simple, and you say "Am I'm thinking I'm impressed with my own cleverness?" it's easy to say "no". Because it's not arrogant to think you can accomplish something simple.

When you are thinking something is simple, and you say "Am I assuming simplicity?" it's easy to say "yes".

Realizing you're committing the fallacy is the first step to avoiding it.