- 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
[quote user="Dave"][quote user="frits"]This makes me wonder why the Euros are all pushing for a metric calendar. I mean the Leap Year problem is a pretty good example why the Gregorian Calendar should be considered harmful.[/quote]
We must change the calendar because of stupid people. There's a new one... [quote]"Stupid people" is a redundant term fuckwit.
Admin
There are less complex ways to solve that problem though:
http://en.wikipedia.org/wiki/International_Fixed_Calendar
In other-words, having less exceptions to consider means less inaccuracies.
Admin
Admin
Well this site's fucked like a cunt to buggery then, innit?
Admin
Hilarious note: after reading this, I over hear the head of the department who runs our client's alcohol site had the exact same issue today. Wonder how many others are out there...
Admin
Admin
Well, it's a bit off subject, but here's a reproduced version of part of a validation routine I once saw:
February 30, anyone? (Well, it almost worked.)
Addendum (2012-02-29 13:13): Forgot November in the first list. Oh, well; I was just trying to give you the flavor.
Admin
On this side of the Appalachians, we call them "hugas".
Admin
We should use a lunar based calendar.
Admin
Admin
"string LegalYear = (intMon + "/" + intDay + "/" + intYear);"
TWTF is the date format too!
I just had to say that one...
Admin
I looked at the date on my (digital) wristwatch this morning, and noticed it said it was the 1st of March. Pressing the Adjust button, I discovered that setting back the date by one day put it on 29 February — which, of course, it had skipped past at 00:00 this morning.
Now, on the couple of previous digital wristwatches by this same manufacturer I've owned, you could set the year and the watch handled leap years automatically and correctly. (Those watches had the problem that their date couldn't go past 2000 and 2020, IIRC.) I can't really work out what the designers were thinking here … let's save memory by not storing the year, but then let's add a check to see if the user is turning the date back from 1 March so it can go to 29 February … WTF?
Admin
Much to their dismay, ancient peoples didn't own SUVs that they could use to drive to 24/7 grocery stores. Their primitive workaround was to invent a Calendar, which helped them predict whether it was time to plant or harvest crops. :)
Admin
silly ancients, they could have just written a routine like this to decide for them:
If crops exist harvest crops else plant crops
Admin
Admin
Admin
Won't somebody please think of the children?
Admin
A little thing called Unix Timestamps could help here.
Admin
Admin
What about relativistic effects? China launches a ship to Tau Ceti at 0.80 c, US freaks out and launches theirs later at 0.90 c. From Tau Ceti vantage point, they both get there at the same time, but time elapsed is different for both. Correcting for velocity depends on which frame of reference to adopt: e.g. motion of earth around sun, sun through galaxy, galaxy in local group, or against the CMBR.
Admin
Admin
It never ceases to amaze me -- and make me sick to my stomach -- that so many developers always try to do things using Strings rather than using classes designed to handle specific domain rules. Dates, Files/Directories and URLs are probably the three biggest offending cases that come to mind.
Too often I see code such as the case I saw where a developer has a File object, converts it to a string, dances through a couple dozen if statements with a fair number of subString and indexof calls to put an additional directory into the middle of the path, then converts the String back to a File object. And he likely only converted back to the File object because that is what the method he wanted to call required. ugh.
Admin
Admin
Laziness solves problems like this.
Admin
On a related note... The length of a year is natural. The length of a month is almost natural. Why seven days for a week? Purely biblical? One of the few factors of 28?
Admin
Admin
Admin
Hmmmm.. My Analog wristwatch handled id perfectly
Admin
Admin
Because of stupid government regulations.
Admin
How is that a bad thing?
Admin
Big deal. So the site doesn't work one day every four years. There are more important things to deal with in any enterprise.
Admin
Admin
That solution, while not ideal, will shamble along until the Galactic Internet gets up and running, at which point time sync issues will arise in the ntp protocol.
Shortly after that finally gets sorted out, one species will discover that another species worships The Force (or whatever) on Thursday instead of Wednesday, and they will be obliged to annihilate each other.
Rinse and repeat. Eventually there will only be One True Time galaxy-wide.
Admin
Must be a Timex...mine did the exact same thing today.
Admin
Try explaining that to your CEO.
Admin
The correct solution to the leap second problem is not to make the calendar more complicated.
"Divide by 4 unless 100 except unless 400, but we still need an exception every 3300 years or so"? Feh.
Why not simply adjust the Earth's orbit inward slightly so that it completes an orbit in exactly 365.0000 days?
Well, that would cause greater solar radiation which would result in global warming (darn you, Al Gore, for inventing that). So we'd be better off pushing the orbit outward slightly so that we'd always have a February 29. This also brings the length of a year to a nicely factorable 61x6 days, meaning we'd just have to change to a 6-day week.
The lunar cycle would have to be adjusted so that it's still a 4-week period, but that'll make the moon closer so it's easier to mine, anyway.
obCaptcha: rm -rf /sbin/init && halt && HAND
--Joe
Admin
fails any 29th thats not february & a leap year
Admin
I think we should switch to the Jalaali calendar, the most accurate calendar known to man: http://en.wikipedia.org/wiki/Iranian_calendar#Seasonal_error
This calendar will be off by one day after 3.8 million years.
Admin
No. That distance change would not, for all practical purposes, affect temperature.
Admin
Admin
Today is Stardate 65629.1
Admin
If you're going to do that, can I suggest going with the slightly more readily divisible 360 days? And adjusting the lunar orbit appropriately so months can all be of equal length?
Admin
If we go on adjusting the lenght of year why not go to something sensible like 100 or 1000 days. Or fix days to this period. So either slow down earth's rotation or speed it up. Then we could at same time move time in 10base system. WIN WIN WIN WIN! I don't belive it would take more than a million years if even that for evolution to fix things which isn't much considering the lifespan of solar-system left...
Admin
Four things. The four things are cache invalidation, naming thi..... I'll come in again.
Admin
I guess your watch is a Breitling because mine did the same.
Admin
The easiest way is to change the speed of the rotation, and not translation, of earth. Perhaps if 6000mi people would run west bound at the same time, we can do it without too much tech!
Admin
Admin
Admin
At least off-by-one errors are reproducible all-year-round.