note 16803 deleted from ref.math by jimw

From: Date: Fri, 07 Dec 2001 03:02:04 +0000
Subject: note 16803 deleted from ref.math by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21843@lists.php.net to get a copy of this message
I was looking for a way to convert distance to time (in hours and secs). Here is the best way to do that... $dtime = ($distance / 60);//60mph $dtime = sprintf("%0.2f",$dtime); list($dhours,$dminutes) = explode(".", $dtime); $dminutes = ($dminutes * .6); $dminutes = sprintf("%0.0f",$dminutes);

« previous php.notes (#21843) next »