[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.13,1.14
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.13,1.14 |
Date: |
Tue, 18 Mar 2003 13:02:39 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv15064
Modified Files:
class.datetime.inc.php
Log Message:
an other issue with daylight-saveing in days_between solved, now the
calculation is down ignoring the daylight-saveing
Index: class.datetime.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.datetime.inc.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** class.datetime.inc.php 26 Feb 2003 16:44:11 -0000 1.13
--- class.datetime.inc.php 18 Mar 2003 18:02:36 -0000 1.14
***************
*** 428,435 ****
@author Steven Cramer/Ralf Becker
@param $m1 - Month_1, $d1 - Day_1, $y1 - Year_1, $m2 - Month_2,
$d2 - Day_2, $y2 - Year_2
*/
function days_between($m1,$d1,$y1,$m2,$d2,$y2)
{
! return intval((mktime(0,0,0,$m2,$d2,$y2) -
mktime(0,0,0,$m1,$d1,$y1)) / 86400);
}
--- 428,436 ----
@author Steven Cramer/Ralf Becker
@param $m1 - Month_1, $d1 - Day_1, $y1 - Year_1, $m2 - Month_2,
$d2 - Day_2, $y2 - Year_2
+ @note the last param == 0, ensures that the calculation is
always done without daylight-saveing
*/
function days_between($m1,$d1,$y1,$m2,$d2,$y2)
{
! return intval((mktime(0,0,0,$m2,$d2,$y2,0) -
mktime(0,0,0,$m1,$d1,$y1,0)) / 86400);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.13,1.14,
Ralf Becker <address@hidden> <=