- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
My theory is that by firing Perl developers into orbit using a high speed cannon facing west, we could increase the rotational speed of the earth (Newton's third law) and end up with 29 days in February every year. This would solve at least one problem, and might also solve the leap year problem too.
Admin
That's okay... I noticed in the date/time on Android 4.0, if you advanced the date from 2/29, it would change to 3/1 correctly. Now if I rolled it back one day, you'd see the date 2/30 appear briefly as the date numbers rolled, then it quickly switches to 2/29....
Admin
[quote user="Y2K"]I suspect most programs got "lucky" in Y2K./quote]
Nah - there's a 200-year window from 1900 to 2100 when the exceptions for 100/400 years don't apply, so most of the time there's no need to worry about them.
Admin
Admin
On a watch that does track the year, you could easily test this by setting the year to 2013 without needing to wait a whole year.
Admin
And the Daylight Savings Time changes. Twice a year, you can set the clock by it.
Admin
Storing the date is boring - detecting a "decrement date on the first of March" is cunning. Which would any programmer prefer to implement?
Admin
Anything about this Microsoft Azure bug? :D http://blogs.msdn.com/b/windowsazure/archive/2012/03/01/windows-azure-service-disruption-update.aspx
Admin
Admin
Admin
...and time zones.
Admin
We should change the calendar to have 365 days every year, then a leap-week periodically. That way you don't lose a birthday falling on a particular day of the week. I lose my Friday birthday this year and am also in my 11-year wait between Sunday birthdays and Wednesday ones given my last of those was in 2010 and the next in 2021.
The obvious time to put in the leap week would be after 28 years, however due to the "shift" we would actually have it every 29 years.
This would make the average year 365.24138 days long. At present it is 365.2425. Not sure what the "perfect" figure would be, but it being slightly shorter than 365.2425 may reduce the need for leap-seconds too.
Of course those who currently have birthdays on 29 February would not get birthdays anymore, and those born in the leap week would only get one every 29 years. We can't please everybody. But it would be nice not to have to wait until 2021 for the next time my birthday will fall on a Wednesday.
Admin
The last year that was divisible by 29 was 2001. The next will be 2030. So those would be our leap years.
Admin
That is utterest stupidest nonsense I have heard in my entire life.
Admin
You must be new here.
Admin
The fun really starts when big systems like Microsoft Azure have a worldwide outage due to leap year problems (which, coincidentally, just happened yesterday).
Admin
Yeah, sure. And we still run around naked, hit each other with clubs and live in caves.
Funny to see how some people have no clue about the world :)
Admin
Actually, failing once every 4 years, excluding every 100 years but then failing again every 400 years.
But that's not the point, it shows that too many Enterprisey systems re-implement things that are readily available, an do so faultily (yes, that's a word). If you find yourself molesting numbers to get the date you want, that's a sign you need read up a bit on the language or platform you're using.
Admin
Don't worry about it, time can be entirely abstract. We could easily have a 100 week year that normally has two winters.
Admin
TRWTF is the ridiculous and confusing MM/DD/YYYY format. DD/MM/YYYY ok YYYY/MM/DD ok but MM/DD/YYYY? No no no!
Admin
Free holiday would be a pleonasm.
Admin
More like 662709600011... you forgot leap seconds.
Admin
Actually, MM/DD/YYYY is the only correct way because it is how people actually say dates. Ask someone when Christmas is and see how many say December 25 vs. 25 December. Then people throw in the year last if it is necessary.
Admin
Christmas? 25th of December!
At least, that's been my experience.
Admin
Mine does exactly the same thing. I guess the manufacturer doesn't want you to bitch about going through all of the days of the month to get to the 29th every four years.
Admin
Admin
YYYY-MM-DD is the only one that sorts properly and that's why it's the standard (ISO 8601). Anyone who uses anything else is the kind of person who becomes a featured article here.
Admin
Dates aren't FUCKING STRINGS!
Admin
My web hosting service, Web.com, had two consecutive days of Feb.28th. Some of my newest files ended up looking like they were created earlier than their prior versions. When are humans going to be perfect?! Exasperating.
Admin
Admin
Some files on a shared folder on our network drive:
April 2011.docx August 2011.docx December 2011.docx Feb 2011.docx January 2012.docx July 2011.docx June 2011.docx Mar 2011.docx May 2011.docx November 2011.docx October 2011.docx September 2011.docx
Notice how nicely they sort! (NOT)
Admin
So we will go with 662709600 for the purposes of deciding if you can visit an over 21 website. Give or take 4 hours. Then round down (backwards) to the nearest midnight. That should keep government regulators happy.
Nice in theory... in practice that energy would go back into the planet when they all stopped running.Changing the length of a year physically (by adjusting the earths orbit) will create big problems. Dates would have to be recalculated throughout history. Any individual dinosaur bone currently carbon dated would be off by about 132710(and some change) years if it were on a dinosaur 200MI Years ago. Hell, my birth day would be off by a few days.
If you fuck with the moon's orbit, you fuck with the tides. I can't possibly see anything going wrong with that one? Can you? The moon also has an effect on the rotation of the earth. You change that and suddenly a day becomes a little bit shorter or a little bit longer. That itself could effect the number of days you get crammed into your year, which would undo or overdo the effect you tried to achieve when you tried to move the earth closer to the sun and set it in a slightly faster orbit.
Admin
[quote user="PiisAWheeL]The moon also has an effect on the rotation of the earth. You change that and suddenly a day becomes a little bit shorter or a little bit longer. That itself could effect the number of days you get crammed into your year, which would undo or overdo the effect you tried to achieve when you tried to move the earth closer to the sun and set it in a slightly faster orbit.[/quote]
Well, obviously it would be an iterative process with a reasonable delay (say, a few decades or so) between each adjustment of earth or moon orbit to let everything settle back down to a nice equilibrium. No sense in rushing something this important...
Admin
One evening I opened my pantry and found the fruit and yarn all intertwined, and I assure you it was no laughing matter.
Admin
How does that handle time dilation at speeds approaching c?
Admin
http://blogs.msdn.com/b/windowsazure/archive/2012/03/01/windows-azure-service-disruption-update.aspx
Admin
I suspect the number of visitors to this site that can reason intelligently about relativity is less than or equal to the number of states that a boolean can have...
Admin
Admin
Admin
Admin
Admin
I don't need no commie govment agency to tell me how to format a string.
Admin
You may as well ask how Silberstein calculated the value 3...
Admin
Admin
Admin
But what do you use as the universal reference point? The Earth? The center of the Galaxy?
Admin
Admin
Admin
I thought my use of the phrase "I suspect" was sufficient indication that I hadn't "calculated" anything.
I was going to use the phrase "can be counted on the fingers of one foot" but I know I can reason intelligently about relativity so that ruled out that "joke". Also, I didn't want to make the assumption that I was the only one and the boolean states seemed to tie in nicely with the Silberstein/Eddington incident.
I'm very young and skinny and wouldn't be very nice to eat but my big brother will be along in a few minutes and he will taste much nicer...
Admin
Then again, comments such as these don't support my suspicion there are more than one...