You need to convert all the times you are comparing into a number such as
seconds since the Unix epoch (Jan 1, 1970 I think).  Then you can use the
usual programming syntax to do what you want.

Look here for more ideas:

http://www.php.net/manual/en/function.time.php

John

> -----Original Message-----
> From: Brian C. Doyle [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 1:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Compairing Times
>
>
> Hello All,
>
> how do I compare 2 times.
> What i want to do is
> $time=date("H:i:s",mktime(0,1,03,0,0,0));
> IF ($time > 00:00:35) { echo "Too High"};
>
> when I do this all i ever get is
> Too High no matter what the value of time is
>
>
> --
> 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 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]

Reply via email to