ID: 11371
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Date/time related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

See this manual page for more info about UNIX timestamps:

http://www.php.net/manual/en/function.mktime.php

this is not a bug in PHP but in Windows..

--Jani


Previous Comments:
---------------------------------------------------------------------------

[2001-06-09 18:29:19] [EMAIL PROTECTED]
This is my script for test function strtotime

<?
for ($year=1900;$year <2010;$year++){
$fdate2= "20 jun ".$year;
$date2=strtotime($fdate2); 
echo "$year ,$date2<br>";
}

$day = date('d M Y');
echo "$day<br>";
$fdate1= strtotime("9 jun 1959");
$fdate2= strtotime($day);
$day = $fdate2-$fdate1;
$days= round($day/86400); 
echo "$fdate1<br>";
echo "$fdate2<br>";
echo "days = ".$days."<br>";
echo "years = ".round($days/365);
?>

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

[2001-06-09 01:59:19] [EMAIL PROTECTED]
Please include a short example script into this report.


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

[2001-06-08 20:18:39] [EMAIL PROTECTED]
I use function strtotime() for count days and have return value -1 in year 1939 to 
1969 on php 4 for windows and php 3.0.16 to and php 3.0.16 have error illegal 
operation in year 1938 and 2038. Php for linux have return value complete. Have any 
idea for function count days?

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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11371&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to