#44163 [Asn]: Addition of more useful date time functions
| From: | rasmus@php.net | Date: | Tue, 19 Feb 2008 08:48:43 +0000 |
| Subject: | #44163 [Asn]: Addition of more useful date time functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122450@lists.php.net to get a copy of this message | ||
ID: 44163
Updated by: rasmus@php.net
Reported By: cool_lim_lp at yahoo dot com dot sg
Status: Assigned
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 5.2.5
Assigned To: derick
New Comment:
I didn't refer to the date() comments. The bug reporter did.
Previous Comments:
------------------------------------------------------------------------
[2008-02-19 08:05:20] derick@php.net
Rasmus, most of the functions in the date() comments actually don't
work, so we can use something like this. I am hoping to manage to get it
into PHP 5.3.
------------------------------------------------------------------------
[2008-02-19 05:59:03] rasmus@php.net
Right, date_diff would be useful, but date addition and the ability to
get individual date parts are there already in date_modify() and
date_parse().
------------------------------------------------------------------------
[2008-02-19 05:46:46] cool_lim_lp at yahoo dot com dot sg
look at the user notes at :
http://sg2.php.net/manual/en/function.date.php
see how many people have to write their own functions to do even simple
date calculations.
------------------------------------------------------------------------
[2008-02-19 05:26:06] cool_lim_lp at yahoo dot com dot sg
ok, tell me how do you calculate the no. of days difference between two
given dates.
------------------------------------------------------------------------
[2008-02-19 05:10:26] rasmus@php.net
That's already there. Please see the date_modify() function in the
manual. Also see date_parse().
------------------------------------------------------------------------
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/44163
--
Edit this bug report at http://bugs.php.net/?id=44163&edit=1