- 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
Ok you win. I'm just trying to entertain myself between long boring drabs at work. My understanding of time dilation must be lacking so I'll just take your word for it. I'm also saddened by the lack of something fresh to comment on today. I'll be around to argue something new and different tomorrow :)
Admin
Admin
Admin
I am not finding oficial definition of "daily." Here in Hyderabad, it mean every time Sun apears on Easturn horizon. What it is meaning in country where this site is being hosted?
Admin
Close, but no. That number comes out to 7670.25 days. You will never have 1/4 of a day in "21 years exactly", not 21 calendar years, anyway. That number is apparently taking the length of a year as 365.25 days. But no year is 365.25 days: some are 365 and some are 366. You do not have 5.25 leap years in 21 years: you have either 5 or 6, depending on the end-points. From 2002 to 2023 there are 5 leap years: 2004, 2008, 2012, 2016, and 2020. But from 2003 to 2024 there are 6 leap years: 2004, 2008, 2012, 2016, 2020, and 2024.
Oh and by the way, from 1985 to 2006 there were only 4 leap years: 1988, 1992, 1996, and 2004. 2000 was not a leap year, under the obscure multiple-of-400 rule.
Admin
I take it by "not in perfect sync" you mean that a year is not an exact integer number of days. But this is one of those things that makes me say, So what? Why is it assumed that our calendar year must exactly match one revolution of the Earth around the sun?
I propose we create a calendar consisting of 13 months of exactly 4 weeks each. (http://johansens.us/sane/offthewall/cal.htm) Think of the advantages: Every month is exactly the same length. As every month is an integer number of days, the days of the week fall on the same date every month, not just from year to year but also from month to month. That is, the 1st is ALWAYS a Sunday, the 2nd is ALWAYS a Monday, etc. Date calculations would be so much simpler. Holidays, pay days, and other things scheduled by day of the month wouldn't shift day of the weeks. Scheduling in general would be simplified as "twice a month" and "every two weeks" would be synonymous, ditto for other such formulas. Etc.
Yes, this year would be only 364 days. Before you tell me that that means it would be "wrong" ... who says? Where is it written that our calendar year must exactly match the time it takes the Earth to go around the sun? It doesn't exactly match now: 3-point-something years out of 4 are slightly short and just under 1 year out of 4 is slightly long. Under my proposed calendar, every year the seasons would move by 1.25 days. So what? In 10 years, winter would start in early January instead of late December. In 130 years, winter would be in July. If we just got used to that and accepted that the name of the month tells you little about the weather you can expect outside, we could have all the advantages of a greatly simplified calendar.
Admin
If no one can find my date, that just means I hid the body well. Hee hee hee.
Admin
Whoops, brain freeze on my own example. Of course 2000 WAS a leap year, because of the 400 rule. 1900 and 2100 were NOT leap years because of the 100 rule.
I hasten to correct myself before someone else gets to do it, thus spoiling your fun.
Admin
Yes, we certainly should modify all of our computer timekeeping systems to factor in these leap seconds. Heaven forbid that our clocks should differ by 1 second from the time shown when the Earth was in the same position relative to the Sun last year. That's well worth adding twenty levels of complexity to every time keeping system in the world.
I think the person who invented leap seconds should be locked up next to the guy who thinks he's a bottle of ketchup.
Admin
Be sure to post here when you do. We'll all be sitting here waiting for the results.
Admin
Thank you for such a pedantic reply.
That's an awful lot of "reading up" for so little benefit, is all I'm saying here. Focus on the big picture.
Admin
Daylight Savings Time is an atheist plot to disrupt church schedules twice a year.
Admin
And then consider that the average intelligence level of people on this site is significantly above the national average, and it's really scary.
Admin
You have to use a Hollywood actress. They all know they're the center of the universe.
Admin
Umm, not clear what that proves. To say that a week is approximately 1/4 of a month isn't much evidence that it was INVENTED by taking the length of a month and dividing by four. If a week was some other lenth, it would still be SOME fraction of the length of a month.
I'm not aware of any basis for the length of a week other than Genesis. Not to say there isn't another possibility, but I don't think this suggestion is it.
Admin
One game I played had their own custom calendar. It only had 6 days in a week, had 5 weeks in a month, and all months were 30 days. This simplified some of the game mechanics in a very nice and convient way. Instead of having Sunday and Saturday it had Holiday.
Admin
Speaking of the devil, Microsoft Azure cloud service is said to be down due to leap year bug!! Ha ha ha :-)
http://www.techweekeurope.co.uk/news/windows-azure-leap-year-glitch-takes-down-g-cloud-63920
Admin
A year must exactly match the time it takes for the earth to travel around the sun... by definition. "Not in perfect sync" means the point on the Earth at which the sun is the zenith right now, will not be the same point the next time the Earth is in this spot.
Your calendar is workable with a few modifications. Under the assumption that you won't be able to convert everyone (yay metric vs standard) and will need to convert between the two calendars.
You will need different month names. Messing up conversions between metric and standard can cause horrible things for Nasa, but confusing July 4th with June 17th really messes up my fireworks watching. At least I don't have to guess which one I'm using if Christmas is in Smarch.
I'm not really sure why you limit yourself to 7-day weeks. That is imposed by a religion and by the American Constitution, there is a separation between church and calendar. 5-day work weeks should be in place. Not only can I count them on one hand, but 40 hour work weeks mean every day is work day, and we lose this hub bub about week ends. (You can also easily go into a 365 day calendar.)
Happy New Year's / Resync Day! Every January 1st @ 8am, your calendar and Greg's get resynced. The last day.25 just rolls into Resync Eve celebrations. This is to keep the seasons from switching around so I don't confuse my grandkids when I tell then winter was when summer is. It will work like my weekday calendar (since I'm already on 5-day weeks.) Basically, my 5-day week resyncs Monday at 8 when I come into work, and Friday lasts for approximately 72 hours.
Admin
Admin
Obviously, you would use Greenwich.
Admin
I guess Einstein would be the FILE_NOT_FOUND boolean value.
Admin
Admin
Since I'm one of those 9-5ers, I'll keep my 7 day slightly off calendar and you can keep your precision for your own day off.
Admin
Drat, I was going to comment and say: "I remember it defly was a leap year because I was actually there." If you hadn't have corrected yourself, that's the sort of fun I would have had. And I think you will agree that fun it would have been.
Admin
First of all, it's 365.2425.
Second, this does not line up with how we normally reckon age.
The value for Jan 2, 1993 at 23:00:00 GMT is 726015600000. If you add your number, you get 1388725200000, which is Jan 3, 2014 at 5:00:00 GMT. So your program wouldn't allow this person to purchase alcohol for more than a day after s/he turns 21 by any normal person's reckoning.
Admin
Admin
Admin
My watch did the same thing, then this morning it said it was Friday.
Admin
Here in Hyderabad, we are having scolars who can determine what is day and what is nite. Is Western Theology prevntion of knowlege of astromonical phenomenon?
Admin
They've had leap seconds since 1972, which is before most of those computerized timekeeping systems were created.
Admin
And timezones. God preserve us all from timezones.
Admin
Admin
Admin
Admin
There's the small snag with that, that back when people first noticed the planets, they didn't realize the Earth was one of them too. So sun, moon and five planets.
Admin
Well it "seems" the easy way.
That above means no leap-year logic at all and just adding one feature (feb.29). Maybe not the right way, but there is certainly some logic in it.
Admin
nyur = year *4.00000000000017641010234764856 ? :)
Admin
That is the beautiful part:
"No, it's not a leap-year bug. The problem was that the buzzword buzzword techie-phrase buzzword geek-speak.
I'll get right on it. It may be done by the end of july, ok? But I think we'll need some more memory here."
Admin
Admin
Spot the bug in this code:
// JavaScript date constructor adds 1900 to years between 0-100, so create dates in two steps: var d = new Date( 0, month, day, hour, minute, second, ms ); d.setFullYear( year );
(I wrote that, and learned a valuable lesson wednessday: always include 29/2 in your unittests).
Admin
All the comments about the calendar being based on one Earth orbit around the sun... come on people this isn't rocket science.
The Gregorian calendar is based on a solar, or equinocal, year so that with the periodic corrections, the equinoxes and solstices fall on approximately the same dates every year. Effectively the calendar is tied to seasons which are determined by axial tilt.
Now an orbit of the Earth around the sun is called a sidereal year and it is slightly different. The changes aren't noticeable in a human lifetime but they mount up over centuries; hence the "lost" days when countries adopted the Gregorian calendar in favour of the Julian one.
So on, say 20th April, the position of the Earth relative to the sun is increasingly different every year.
Admin
Everybody knows the centre of the universe is Huddersfield
Admin
You're not understanding. There is no universal frame of reference to make these corrections. That's the whole point of the theories of relativity. All measurements are relative.
Also, "gravity" would only be felt when the ship is accelerating or decelerating. The travellers can move at 0.999 c, say relative to the galactic center, and be free floating in their vessel.
Admin
Hah, our French colleagues had the same bug today.
They picked the current day, current month, current year - 5. Result: their application did not start up yesterday.
Admin
Admin
This whole conversation reveals a sad truth about the human condition and scientific discovery. We're not learning to answer questions, just ask more confounding ones.
Admin
and scheduling processes at 12:30AM combined with DST. April: My job didn't run! Workaround: Wait until October.
Admin
In related news in one place multi-ride tickets for public transportation would be stamped with the 1st of March instead of 29th of February. That is one of the least surprising manifestations of leap year related bugs. However after they got that fixed a more interesting variation turned up the next day when they naturally counted up from the 29th of February to the 30th of February.
On http://www.dr.dk/P4/Kbh/Nyheder/Koebenhavn/2012/03/02/133644.htm you can see a photo of such a ticket with a stamp indicating the 30th of February.
Admin
Admin
You obviously don't know shit about astronomy, fuckwit.