Date: 06/29/01
- Next message: trozdzyn <email protected>: "[PHP-DEV] Bug #11785: mysql_unbuffered_query and mysql_query failure."
- Previous message: alberty <email protected>: "[PHP-DEV] Bug #11804: curl_error results strange strings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: php <email protected>
Operating system: debian gnu/linux
PHP version: 4.0.5
PHP Bug Type: Date/time related
Bug description: missing 3600 seconds between 10/13/2001 and 10/15/2001
Hello,
I am trying to write the days between 10/13/2001 and 10/15/20001:
$i = mktime(0,0,0,10,13,2001);// --> 1002942000
$j = mktime(0,0,0,10,15,2001);// --> 1003111200
while ( $i <= $j ) {
echo date("m-d-Y",$i);
$i +=86400;
}
but it stops on 10/14/2001, because
1002942000 ( $i )
+ 86400
+ 86400
----------------------------
= 1003114800
- 1003111200 ( $j )
------------------------------
= 3600 ( should be zero ! )
I 've made a work-around using date(m,d+1,Y),
but somebdoy please explain me where are the
3600 seconds that are missing ?
Thanks,
gabriel
-- Edit Bug report at: http://bugs.php.net/?id=11805&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: trozdzyn <email protected>: "[PHP-DEV] Bug #11785: mysql_unbuffered_query and mysql_query failure."
- Previous message: alberty <email protected>: "[PHP-DEV] Bug #11804: curl_error results strange strings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

