Bug #74803 [Opn->Dup]: Invalid milliseconds formatting from microseconds

From: Date: Fri, 23 Jun 2017 15:00:55 +0000
Subject: Bug #74803 [Opn->Dup]: Invalid milliseconds formatting from microseconds
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209652@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74803&edit=1

 ID:                 74803
 Updated by:         requinix@php.net
 Reported by:        ferrius7 at gmail dot com
 Summary:            Invalid milliseconds formatting from microseconds
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            Date/time related
 Operating System:   Ubuntu 16
 PHP Version:        7.1.6
 Block user comment: N
 Private report:     N

 New Comment:

Duplicate of bug #74753.


Previous Comments:
------------------------------------------------------------------------
[2017-06-23 06:40:37] ferrius7 at gmail dot com

Description:
------------
Invalid formatting datetime with milliseconds from microseconds

Test script:
---------------
echo (new \DateTimeImmutable('2016-10-07
12:34:22.999600'))->format('Y-m-d\TH:i:s.v');

// I expect 2016-10-07T12:34:22.999 or 2016-10-07T12:34:22.100 but not 2016-10-07T12:34:22.1000



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



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


Thread (2 messages)

« previous php.bugs (#209652) next »