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

 ID:                 10217
 Updated by:         shifl...@php.net
 Reported by:        karl at sukz dot org
 Summary:            Feature
-Status:             No Feedback
+Status:             Closed
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   linux 2.2.16
 PHP Version:        4.0.4pl1
 Assigned To:        shiflett
 Block user comment: N

 New Comment:

Cleaning up an old bug. See the new DateTime class.


Previous Comments:
------------------------------------------------------------------------
[2002-04-18 00:00:08] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2002-03-17 14:33:01] cnewb...@php.net

PEAR is somewhat nice and all, but this should really be CORE
functionality.  What if they don't have PEAR and they're not allowed to
install it or don't know how or don't even know it's there or....?



*Most* Functions in the Date/Time category should be core IMO since we
already give them plenty of rope to hang themselves with other date
manipulation functions.  This function is one that should be in
core...I'm sure you'll dislike this example, but developers coming from
VBScript 

will expect an equivalent to DateDiff().



We already have functions that *could* be done easily in userland as
well...array_diff() is one of them.  So I don't buy that argument, nor
the bloat argument as this should be a small addition.



Would like some feedback for and against this addition.



-Chris 

------------------------------------------------------------------------
[2002-03-17 13:37:05] shifl...@php.net

I suppose it does. I should familiarize myself with PEAR more before I
accidentally reinvent the wheel.

------------------------------------------------------------------------
[2002-02-10 05:25:32] san...@php.net

Doesn't PEAR have a class which does that?

------------------------------------------------------------------------
[2002-02-10 00:37:57] shifl...@php.net

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.

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=10217


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

Reply via email to