ID:               28717
 Comment by:       php1 at clayst dot com
 Reported By:      andy at advancethermal dot com
 Status:           Wont fix
 Bug Type:         Date/time related
 Operating System: WindowsXP
 PHP Version:      4.3.7
 New Comment:

OK, won't be fixed is fine, but the docs should be updated.  Took me a
while to track this down as I believed the docs that GNU format was the
rule.  GNU format allows the decimal seconds.


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

[2004-06-10 09:00:25] [EMAIL PROTECTED]

This is fixed for PHP 5, but will not be fixed in PHP 4.

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

[2004-06-10 00:31:47] andy at advancethermal dot com

Description:
------------
strtotime() returns -1 for dates in the format yyyy-mm-dd hh:mm:ss.fff 
(where .fff represents the fraction of the second)

e.g. strtotime("2004-06-09 17:25:14.333") returns -1

[MSSQL via ODBC returns dates in this format.]


Reproduce code:
---------------
$sv = strtotime("2004-06-09 17:25:14.333");
echo $sv;

Expected result:
----------------
1086819914

Actual result:
--------------
-1


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


-- 
Edit this bug report at http://bugs.php.net/?id=28717&edit=1

Reply via email to