RE: [PHP] convert timestamp to time?

From: Date: Sun, 26 Aug 2001 11:56:35 +0000
Subject: RE: [PHP] convert timestamp to time?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64498@lists.php.net to get a copy of this message
>I write: >$m=date("H:i:s"); ---->10:34:33 >$p=echo time($m); ------>998805674 >date("h:i:s",mktime($p)); ----->12:34:33 > >my problem is the difference between first and third time that should >be the same.??? nope if $p is already a unix timestamp (as per your output) I don't know why you are processing it again with mktime. $m=date("H:i:s"); ---->10:34:33 $p=echo time($m); ------>998805674 date("h:i:s",$p); Dave

« previous php.general (#64498) next »