Mike Simmons wrote:"America/New_York", as far as I'm concerned.
I agree that we need good mnemonics for time zones...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
Mike Simmons wrote:"America/New_York", as far as I'm concerned.
Then all I can can say is you're waaay younger than me.
Winston Gutkowski wrote:And just look at that name: 'New_York'? What if I get it wrong? Is it case-sensitive (I hope not)? What if I don't know how to spell 'Tallahassee' or 'Ouagadougou' or 'Des_Moines' ('_' assumed from above)?
Winston Gutkowski wrote:
I agree that we need good mnemonics for time zones...
But we already have them, good or otherwise; and trying to force some "semantically correct" notion on people who have already learnt to misuse them is bound to lead to trouble - kind of like java.util.Calendar's ridiculous (and lazy, I reckon) choice to make months 0-based.
I'm not trying to argue that it's wonderful, or correct; I'm simply saying that most people (certainly of my generation) equate the mnemonic 'EST' with what you would call "Eastern Time", despite the fact that we know the difference between 'Standard' and 'Daylight'. And to change the way it works from one release to another (and was it a Java release, or just a "bug" fix)? Aaagh. I wonder how many apps fell on their face as a result of that "little" change? And how many more only discovered a problem 6 months later?
Mike Simmons wrote:Well, I'm 43 - is the gap that huge?
I'm actually not sure what happened here - there were other changes in time zone info at this time, thanks to US policy changes (after Australian changes the previous year), and there were bugs reported against the JDK and elsewhere about incorrect time zones. And in this context, I remember checking the current Java release, asked for "MST", and getting a TimeZone that was returning MDT during the summer. Years later, I checked again, and I got MST in summer. And I considered that a good thing, because it's what I had asked for. I don't really know if someone fixed (IMO) the way "MST" worked, or if they were fixing a different (more subtle?) bug that had given me incorrect info the first time around.
It looks to me like MST is defined this way in the tz database, not in any JDK workaround. From the current northamerica data file:
So apparently the tz database has been doing this since 2005 at least...
Java, meanwhile, has had that warning in their API all along about using three-letter codes for TimeZone IDs, so I tend to figure any programmers bitten by this change (if there was one) deserve what they got.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Mike Simmons wrote:Maybe we're talking about different contexts here. I'm talking about what I would use, as a programmer, to request a particular time zone. Because I would look it up. And the name America/New_York comes to us from the tz database that you've been going on about...Other programmers seem to be able to use this data successfully. If they get it wrong, or reference a zone file that doesn't exist, then they will get an error of some sort, or get incorrect results. As you'd expect with any typo in a program or config information.
As a Java programmer, I think there should be an enum somewhere that has something resembling a canonical list of these things...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:Actually, I'm pretty sure that the 'America/New_York' notation is a Microsoft (or possibly Linux) thing that has been retrofitted to the tz database;
Winston Gutkowski wrote:and in the Java API, invalid references simply return Greenwich Mean Time (???) silently, which means that theoretically every call to getTimeZone() should be accompanied by a check to make sure you got the right one.
Mike Simmons wrote:The airport code idea is an intriguing one. I would be happy to use time zone YYZ, even though I've never been to Toronto.
Though I'm skeptical how far it would go - there are far more airports out there than time zones
and people might well be trying to use their obvious, well-known local airport as a time zone, even if it isn't.
And many such codes would be completely unfamiliar to others not from the area.
Using N/S for North/South would only come into play for those who actually use DST.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
John 3:16
Jordan D. Williams wrote:As promised, I have finished the new, re-written from the ground version of my experimental project. I posted it under my "Code Review Request" thread. You can find it here.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here