[SATLUG] San Antonio's Daily WTF

K. Spoon kell at spoonix.com
Fri Dec 1 03:54:00 CST 2006


On Thu, Nov 30, 2006 at 04:12:22PM -0600, R. Tyler Ballance wrote:
> I showed you mine, now show me yours. Please tell me you all have  
> some WTFs, else I've have to go try to drown myself in a pint of  
> Guinness :)

That's always a good idea besides the point.

But here goes.  This is one that was entitled:  "Metric Time".  Comments
are reproduced in their entirety and as close to verbatim as I can
recall.

 $start_time = time();
 [... do some highly reckless stuff here ...]
 $end_time = time();

 $elapsed_time = $end_time - $start_time;
 #caculate minutes
 $minutes = $elapsed_time / 100;
 if( $minutes > 60 ) {
   $minutes -= 40;
 }

Of course.... it was in production.

My only comment upon discovery was "That's the sort of math skills you don't
see too often outside of NASA's Mars exploration labs."  ;)

-- 
K. Spoon <kell at spoonix.com>


More information about the SATLUG mailing list