Firstly, I assume you mean "Y-m-j H:i:s" for the date format.
To get the difference between 2 time strings :
// orginal time strings
// convert to unix timestamps
// perform subtraction to get the difference (in seconds) between times
//echo out the difference
printf ("Difference is %d seconds",$timeDiff);
----- Original Message -----
From: "Ron Allen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 1:08 PM
Subject: [PHP] Determine the difference between two dates
> If I have two variables of time both in the format of "Y-m-j J:i:s"
> How would I go about and get the difference?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php