RE: Script to convert # of seconds to HH:mm

From: Date: Tue, 20 Mar 2001 13:32:35 +0000
Subject: RE: Script to convert # of seconds to HH:mm
Groups: php.general 
Request: Send a blank email to php-general+get-44736@lists.php.net to get a copy of this message
if your input is a number of seconds why not just treat it as a unix timestamp so ... echo date("H:i:s", $num_seconds) ... will work. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -----Original Message----- > From: Yoshi Melrose [mailto:webmaster@validus.com] > Sent: 19 March 2001 22:09 > To: php-general@lists.php.net > Subject: Script to convert # of seconds to HH:mm > > > Can someone direct me or send me a script that will convert number of > seconds into a format readable as HH:mm? I've tried making it > myself, but it > gets all messed up in the calculations. Thanks!!!! > > Yoshi > >

« previous php.general (#44736) next »