ID:               10217
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Closed
+Status:           Assigned
 Bug Type:         Feature/Change Request
 Operating System: linux 2.2.16
 PHP Version:      4.0.4pl1
-Assigned To:      
+Assigned To:      shiflett
 New Comment:

Actually, I think Karl has a good suggestion, and the - operator wasn't
the answer he was looking for.

Try to calculate how many seconds, minutes, hours, days, weeks, and
years between two random times, and I bet it takes you several lines of
PHP. Just because it *can* be done now doesn't mean it isn't worth
considering making a function to help make it easier for people.

Is there a good reason why we shouldn't add some helpful date/time
functions? If not, I'll be happy to take on the project myself.


Previous Comments:
------------------------------------------------------------------------

[2002-02-09 23:32:35] [EMAIL PROTECTED]

it's called the - operator.

------------------------------------------------------------------------

[2001-04-06 19:39:54] [EMAIL PROTECTED]

I noticed there is no function in php to tell the duration between two
times, unless of course there is and i just didn't see it. I was
wondering if you could impliment one in the next version.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=10217&edit=1

Reply via email to