#28717 [Opn->WFx]: strtotime() not handling fractions of seconds

From: Date: Thu, 10 Jun 2004 07:00:26 +0000
Subject: #28717 [Opn->WFx]: strtotime() not handling fractions of seconds
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60689@lists.php.net to get a copy of this message
ID: 28717 Updated by: derick@php.net Reported By: andy at advancethermal dot com -Status: Open +Status: Wont fix Bug Type: Date/time related Operating System: WindowsXP PHP Version: 4.3.7 New Comment: This is fixed for PHP 5, but will not be fixed in PHP 4. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#60689) next »