Yow Sven,

> I need to calculate the Time ( days hour minutes between 2 times )
> I have something but I have an error margine of 10 % and that is to
> Time one 2002/02/24 10:23:43
> Time two 2002/02/02 12:43:12
> this need to give me the correct time in days hours and minutes
between the
> 2 dates

The broad answer would be to convert the values to (UNIX epoch)
timestamps, do the calculation, and then convert back to your preferred
presentation format.

Where do the dates come from - a database?
Are they ISO format dates? (in which case the separator should be - not

It can be done!

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to