Re: [PHP] How to count time in php

2001-01-22 Thread Stephan Ahonen
{code snipped} You could probably simplify this a bit with mktime(). The syntax is mktime(hours, minutes, seconds): $minsec = explode(":", $time); $numsecs += mktime(0, $minsec[0], $minsec[1]); That'll give you the number of seconds. Then at the end, you can say: echo(floor($totalseconds / 60)

Re: [PHP] How to count time in php

2001-01-22 Thread Richard Lynch
> can anybody help me how to count seconds, minutes and hours in php? > I want to sum values like 03:35, 02:31, 04:59, etc. and show the > results in minutes. Here's how I would try to do it: \n"; ?> There's probably several other ways to do it. YMMV. Don't miss the Zend Web Store's Grand Op

[PHP] How to count time in php

2001-01-22 Thread Dezider Góra
Hi, can anybody help me how to count seconds, minutes and hours in php? I want to sum values like 03:35, 02:31, 04:59, etc. and show the results in minutes. tia Dezider. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,