Wednesday, February 11, 2009

Friday The 13th

I am not a superstitious person; have no problem walking under ladders, I like black cats just fine, and I’ve broken mirrors and spilled salt without a qualm. I do, however, tend to plan my schedule to stay home on any Friday that falls on the 13th of any month. There is a reason for that, but I won’t go into it here.

This coming Friday is the 13th, but just before midnight something very interesting happens. I’m not going to stay up to watch it, or anything like that, and it’s really only interesting if you are a computer geek. Well, not only a computer geek, but a programmer geek, and one with an interest in the Unix family of operating systems.

But don’t worry, I’m going to tell you about it anyway.

Programmers don’t like to deal with dates and times. Calculating intervals between dates and, even worse, between times within different dates is a major pain. You cannot merely add and subtract, because not all months have the same number of days, and some months have a different number of days depending on the year. So we use something called a timestamp for storing dates and times. It’s really quite simple; it’s just a very large number containing the number of seconds which have elapsed since the very beginning of, no not time itself, merely the day Jan 1, 1970.

Well, we’re dealing with computer geeks here, not archeologists.

There are some disadvantages to that method. What about dates earlier than that? Well, we deal with that by using negative numbers. Is there a “Y2K” type issue? Yes, there is; in the year 2038 that date will “overflow” a 32-bit integer, and that is a bit of a problem, but we are talking about this coming Friday.

On Friday, Feb 13, 2009 at 28-1/2 seconds before midnight, that number becomes:
1234567890

Apparently my excitement threshold is pretty low.

3 comments:

dilcomention said...

sure it is going to be another serous movie I have seen the trailer. Really cant wait to see the movie. I have already seen the previous movies of Friday 13th what I like about the movie is the mist and fast killing sense don’t think it was a remake, it still got the interest I don’t think it will die, revenge is forever,

http://blog.80millionmoviesfree.com/in-theaters/friday-the-13th-2009-dead-son-returns-for-revenge

bruce said...

yeah you are a geek and you have a lot of time on your hands (thusly, you are a blogger) - oops, the post about time & date. heh heh.
Thanks for the trivia.

Barbara B. Solbrig said...

If your excitement threshold is "pretty low," maybe you need a hobby? (Or one that doesn't raise your BP and make your wife tell you to turn the TV off?) Maybe you could build model trains or something? Just the train, they don't take up as much room as the track system. Or you could take up some other hobby. I could give some other suggestions if you wanted. :)

Post a Comment