A new date standard?
-
So I'm at this web shop and they have a product which is expected on "30-11--0001" (for Americans, that's the logical order of day-month--year). That's a pretty weird date, I'd expect 01-01-0001 or 01-01-1970 or even 01-01-1753 (the SQL min value), but never 30-11... The extra dash between the month and the year bothers me too, that's not a standard notation anywhere as far as I know. The best part though, is that I can pre-order the product, so apparently 30-11--0001 is a date in the future! And to make it worse, it's a best selling product, so they've already sold plenty. I can only draw one conclusion from all of this: this web shop is centuries, if not millennia, ahead of us (or at least they serve time travellers)! :omg: Is your software Y10K proof? :rolleyes:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
I wait for when the relative date format becomes universal. Past, Now, Future. The is no value of things that happened in the past. Why waste time on when it was. Any event in the future either will or will not happen. When it happens it will be now. Now is the only time to focus on. (I have been on a bit of mental self actualisation last weekend)
-
Sander Rossel wrote:
(for Americans, that's the logical order of day-month--year).
That's the typical Eurocentric ass-backwards mindset. YYYYMMDD, with whatever delimiters float you boat. As for the US Vernacular, most conversations would say something like October 25th or June 2nd. The year is only necessary, in conversations, a fraction of the time. So - the dates are written as they are said. But, as far as it goes, it's no worse for sorting (even when numeric) than the crappy Euro-convention. At least, if all in the same year, the US convention MM-DD would sort correctly (small consolation).
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
W∴ Balboos wrote:
YYYYMMDD
But the year is probably the digit you're LEAST interested in... Sorting is only an issue when you're using strings as dates, which you shouldn't, as all languages I know sort dates correctly :rolleyes:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
The year value -1 should have tipped you off. If a date value is initialized to all 1 bits, and you interpret it as numeric subfields, 111...11 is -1. So the year comes out as -1. Now for the month, nubered from 0 and upwards, January is month 0. -1 is the month before that, which is December. We go on to the date field: 0 is the first day of the month, and -1 is one day earlier. We were in December, and go one day back: That brings us to November 30th. Which is the value that you've got. Date -1 of month -1 of year -1 comes out formatted exactly the way you saw it. I think it would have been more correct if the year was -0002: Like the date -1 pulls the month from December back to November, the month -1 should have pulled the year back to -0002. I read an article about this a few weeks ago (now I pity that I didn't save the URL!) telling that one of the most widespread libraries used for formatting in the *nix world doesn't do that; it gives exactly the value 30-11--0001 for an input of all bits set.
That's amazing work, Sherlock! :laugh: It never even occurred to me that the year was negative, I just assumed someone mistyped -- instead of -
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
So I'm at this web shop and they have a product which is expected on "30-11--0001" (for Americans, that's the logical order of day-month--year). That's a pretty weird date, I'd expect 01-01-0001 or 01-01-1970 or even 01-01-1753 (the SQL min value), but never 30-11... The extra dash between the month and the year bothers me too, that's not a standard notation anywhere as far as I know. The best part though, is that I can pre-order the product, so apparently 30-11--0001 is a date in the future! And to make it worse, it's a best selling product, so they've already sold plenty. I can only draw one conclusion from all of this: this web shop is centuries, if not millennia, ahead of us (or at least they serve time travellers)! :omg: Is your software Y10K proof? :rolleyes:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
I wait for when the relative date format becomes universal. Past, Now, Future. The is no value of things that happened in the past. Why waste time on when it was. Any event in the future either will or will not happen. When it happens it will be now. Now is the only time to focus on. (I have been on a bit of mental self actualisation last weekend)
You got my vote. No more time zones, leap years, leap seconds, summer time, etc. :thumbsup: And the DateTime object could simply be an enum type :D
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
W∴ Balboos wrote:
YYYYMMDD
But the year is probably the digit you're LEAST interested in... Sorting is only an issue when you're using strings as dates, which you shouldn't, as all languages I know sort dates correctly :rolleyes:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
Sander Rossel wrote:
Sorting is only an issue when you're using strings as dates,
Or even an 8-digit int. But that's besides the point. The pompous overbearing Euro-gang, demanding everyone adopt their standards. The demands are no less significant then demanding we all speak the official ISO stipulated language. I could come up with ever so many reasons to justify the US standard, like if one were starting a sentence, one would not have to use a digit, or spell out the day. But WTF's the difference. Except for computer sorts where a date object is not the target, it comes do to arbitrary human customs. Lunar calendars exist too. Not a jab at you, but I'm glad my ancestors left that continent. It seems to be old, tired, and trying to reclaim relevance by force* that it cannot do by inspiration. * My Parmesan cheese is made in Argentina - and I prefer it that way. My champagne from NY State; &etc
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
Sander Rossel wrote:
Sorting is only an issue when you're using strings as dates,
Or even an 8-digit int. But that's besides the point. The pompous overbearing Euro-gang, demanding everyone adopt their standards. The demands are no less significant then demanding we all speak the official ISO stipulated language. I could come up with ever so many reasons to justify the US standard, like if one were starting a sentence, one would not have to use a digit, or spell out the day. But WTF's the difference. Except for computer sorts where a date object is not the target, it comes do to arbitrary human customs. Lunar calendars exist too. Not a jab at you, but I'm glad my ancestors left that continent. It seems to be old, tired, and trying to reclaim relevance by force* that it cannot do by inspiration. * My Parmesan cheese is made in Argentina - and I prefer it that way. My champagne from NY State; &etc
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
W∴ Balboos wrote:
The pompous overbearing Euro-gang, demanding everyone adopt their standards.
It seems to me that the only people who do everything differently are United States Americans. I really couldn't care less how you do it, but having one standard for everything (including language, Esperanto, anyone?) would certainly make our jobs easier! Getting 195 countries (or more or less, depending on who you ask, we can't even agree on that) to adopt the same standards is a lost cause though. Maybe for the better, because it's the differences that make us beautiful (except the USA date format, that's just wrong) :D
W∴ Balboos wrote:
I'm glad my ancestors left that continent
Not a jab at you, but so am I ;) (you seem to have a deep rooted issues with Europeans, we're generally nice people though)
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
You got my vote. No more time zones, leap years, leap seconds, summer time, etc. :thumbsup: And the DateTime object could simply be an enum type :D
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
W∴ Balboos wrote:
The pompous overbearing Euro-gang, demanding everyone adopt their standards.
It seems to me that the only people who do everything differently are United States Americans. I really couldn't care less how you do it, but having one standard for everything (including language, Esperanto, anyone?) would certainly make our jobs easier! Getting 195 countries (or more or less, depending on who you ask, we can't even agree on that) to adopt the same standards is a lost cause though. Maybe for the better, because it's the differences that make us beautiful (except the USA date format, that's just wrong) :D
W∴ Balboos wrote:
I'm glad my ancestors left that continent
Not a jab at you, but so am I ;) (you seem to have a deep rooted issues with Europeans, we're generally nice people though)
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
Sander Rossel wrote:
(you seem to have a deep rooted issues with Europeans, we're generally nice people though)
As individuals, I've often found that to be the case - but when you gather together as a mob, not so much. The world's common speech is becoming English. By default, actually. Unlike the French, we don't protect the language from outside influences (they're worried because their language is dying). In real life, the international language of science was "Broken English". Not because it's a better language, but because its accepting. Schadenfreude and Putz - excellent additions to any language. So many other fine words that add flavor. So WTF? The door's open.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
So I'm at this web shop and they have a product which is expected on "30-11--0001" (for Americans, that's the logical order of day-month--year). That's a pretty weird date, I'd expect 01-01-0001 or 01-01-1970 or even 01-01-1753 (the SQL min value), but never 30-11... The extra dash between the month and the year bothers me too, that's not a standard notation anywhere as far as I know. The best part though, is that I can pre-order the product, so apparently 30-11--0001 is a date in the future! And to make it worse, it's a best selling product, so they've already sold plenty. I can only draw one conclusion from all of this: this web shop is centuries, if not millennia, ahead of us (or at least they serve time travellers)! :omg: Is your software Y10K proof? :rolleyes:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
My bet is simply on a lazy programmer who got something wrong in using existing data info...
-
I wait for when the relative date format becomes universal. Past, Now, Future. The is no value of things that happened in the past. Why waste time on when it was. Any event in the future either will or will not happen. When it happens it will be now. Now is the only time to focus on. (I have been on a bit of mental self actualisation last weekend)
So no more birthday presents and cake for you. Also, you don't get paid for the time you came in for work this morning, after all, all that counts is now... ;P
-
Well, that's better than the stupid MM-DD-YYYY, but the only way you can properly sort is YYYY-MM-DDD
-
Well, that's better than the stupid MM-DD-YYYY, but the only way you can properly sort is YYYY-MM-DDD
-
I am not aware that the way numbers are written (and hence sorted) are different in those languages. AFAIK, multi digit numbers are actually written at least in Arabic left to right still...
-
I am not aware that the way numbers are written (and hence sorted) are different in those languages. AFAIK, multi digit numbers are actually written at least in Arabic left to right still...
As someone who knows Arabic, you are correct. As someone who has never used an Arabic keyboard for sorting, I would assume that sorting follows the language, which in this case is right to left. So DD-MM-YYYY would sort in the order of 78-56-1234 since the numbers are left to right, but higher precedence from right number to left.
-
Now that you mention it I have never seen or read a reference to year 0. Hmmm
I may not be that good looking, or athletic, or funny, or talented, or smart I forgot where I was going with this but I do know I love bacon!
The conspiracy theorists probably submit that the Vatican has deliberately done this in order to prevent the masses from learning the truth about whatever it is they might be hiding. We're philosophical about power outages here. A.C. come, A.C. go.
-
As someone who knows Arabic, you are correct. As someone who has never used an Arabic keyboard for sorting, I would assume that sorting follows the language, which in this case is right to left. So DD-MM-YYYY would sort in the order of 78-56-1234 since the numbers are left to right, but higher precedence from right number to left.
In any case, why would you sort a date as a string? We're philosophical about power outages here. A.C. come, A.C. go.
-
In any case, why would you sort a date as a string? We're philosophical about power outages here. A.C. come, A.C. go.
-
In any case, why would you sort a date as a string? We're philosophical about power outages here. A.C. come, A.C. go.
-
The conspiracy theorists probably submit that the Vatican has deliberately done this in order to prevent the masses from learning the truth about whatever it is they might be hiding. We're philosophical about power outages here. A.C. come, A.C. go.
I'm sure, all those lonely knights?
I may not be that good looking, or athletic, or funny, or talented, or smart I forgot where I was going with this but I do know I love bacon!