ID: 44163 Updated by: [EMAIL PROTECTED] Reported By: cool_lim_lp at yahoo dot com dot sg -Status: Open +Status: Assigned Bug Type: Feature/Change Request Operating System: any PHP Version: 5.2.5 -Assigned To: +Assigned To: derick
Previous Comments: ------------------------------------------------------------------------ [2008-02-19 08:05:20] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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
