-
March 2nd, 2008 07:28 PM
#1
Leap Year programming
Well another February 29 has come and gone, and I came across this mildly amusing article:
http://www.theregister.co.uk/2008/02...ttack_ballmer/
Apparently there are quite a few systems, in this case site registration ones, that refuse to recognise a leap year.
This means that you won't be getting a birthday card from Geoffrey the Giraffe 
Here is a link to a birthday club sitw for Feb 29 babies, it has a Perl script and the calculation rules:
http://leapyearday.com/hr/freecode.html
As this is the programming sub-forum, I have an amusing story to tell you. It was when I was doing Y2K testing on a sales order processing suite. I asked it to do me a 29-02-2000 month end and it gave me the "invalid date" message.................
I did what a beancounter would have done in the situation, and asked for 28-02-2000, because the 29th was actually a non-trading day for us, and even if it wasn't I had a work around by delaying the month-end run and processing all the 29th stuff as the 28th 
I fell apart laughing when the message popped up "February 28th is not a valid month-end, would you like to use February 29th?"
If you cannot do someone any good: don't do them any harm....
As long as you did this to one of these, the least of my little ones............you did it unto Me.
What profiteth a man if he gains the entire World at the expense of his immortal soul?
Similar Threads
-
By Katja in forum General Programming Questions
Replies: 6
Last Post: August 30th, 2005, 09:44 PM
-
By mathgirl32 in forum AntiOnline's General Chit Chat
Replies: 4
Last Post: October 31st, 2004, 08:03 AM
-
By gore in forum Operating Systems
Replies: 3
Last Post: March 7th, 2004, 07:02 AM
-
By Agent_Steal in forum Product / Book / Training / Conference Reviews
Replies: 8
Last Post: January 2nd, 2004, 06:50 AM
-
By -DaRK-RaiDeR- in forum Newbie Security Questions
Replies: 9
Last Post: December 14th, 2002, 07:38 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks