$seconds = explode(":", $time);
$seconds = $seconds[0] * 3600 + $seconds[1] * 60 + $seconds[2];
Or use www.php.net/mktime
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
----- Original Message -----
From: nafiseh saberi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 9:30 AM
Subject: [PHP] convert 12:12:00 to seconds
|
| hi.
| how do I covert convert 12:12:00 to seconds ?
| I want to get time from system and covert it to seconds to do
| arithmetic work on it.
| 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]
|
|
|
--
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]