RE: [PHP] convert timestamp to time?

2001-08-26 Thread Dave



>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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] convert timestamp to time?

2001-08-25 Thread nafiseh saberi


hi.
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.???
thanks.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]