Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: MLUG membership <EMAIL:PROTECTED>
- Subject: [MLUG] the 2038 bug already bit me!
- From: Mike Miller <EMAIL:PROTECTED>
- Date: Wed, 5 Dec 2007 19:39:13 -0600 (CST)
- Delivery-date: Wed, 05 Dec 2007 19:39:33 -0600
- Envelope-to: EMAIL:PROTECTED
- Reply-to: MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
My brother's birthday is on November 22. Once every 7 years, on average,
his birthday falls on Thanksgiving. I was curious about when exactly that
would occur in the future so I did something like this in the bash shell
on a GNU Linux system:
for year in $(seq 2008 2060) ; do date -d 11/22/$year | grep Thu ; done
And if you try it, you'll see what happens -- it fails starting in 2038.
It also fails if you go back before 1970.
Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members