Re: Interger to Time???

From: Date: Sat, 23 Sep 2000 08:30:01 +0000
Subject: Re: Interger to Time???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17574@lists.php.net to get a copy of this message
there's a function called mktime which can help you with that. http://www.php.net/manual/function.mktime.php Your script might look like: <? $myInteger = "28800"; $formattedTime = date('h:i:s',mktime(0,0,$myInteger,date('d'),date('m'),date('Y')); ?> Have a nice day ----- Original Message ----- From: Brian C. Doyle <bcdoyle@mindspring.com> To: <php-general@lists.php.net> Sent: Tuesday, September 19, 2000 8:51 PM Subject: [PHP] Interger to Time??? > Hello all, > > I need to convert an interger (28888 (seconds)) into hours minutes and seconds? > > > What would i have to do? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#17574) next »