Really Bad Code
I just fixing up a reported bug of a really old application. In trying to fix the code I ran across this piece of code.
return ( floor(( 146097 * $century) / 4 ) + floor(( 1461 * $year) / 4 ) + floor(( 153 * $month + 2) / 5 ) + $day + 1721119);

