March 2nd, 2008, 08:28 PM
Leap Year programming
Well another February 29 has come and gone, and I came across this mildly amusing article:
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:
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?
By Katja in forum General Programming Questions
Last Post: August 30th, 2005, 10:44 PM
By mathgirl32 in forum AntiOnline's General Chit Chat
Last Post: October 31st, 2004, 09:03 AM
By gore in forum Operating Systems
Last Post: March 7th, 2004, 08:02 AM
By Agent_Steal in forum Product / Book / Training / Conference Reviews
Last Post: January 2nd, 2004, 07:50 AM
By -DaRK-RaiDeR- in forum Newbie Security Questions
Last Post: December 14th, 2002, 08:38 PM