Annotation of embedaddon/php/ext/date/tests/bug45554.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #45554 (Inconsistent behavior of the u format char)
                      3: --INI--
                      4: date.timezone=UTC
                      5: --FILE--
                      6: <?php
                      7: $format = "m-d-Y H:i:s.u T";
                      8: $d = date_create_from_format($format, "03-15-2005 12:22:29.000000 PST");
                      9: echo $d->format($format), "\n";
                     10: 
                     11: $d = date_create_from_format($format, "03-15-2005 12:22:29.001001 PST");
                     12: echo $d->format($format), " (precision isn't enough to show the 1 here)\n";
                     13: 
                     14: $d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST");
                     15: echo $d->format($format), "\n";
                     16: ?>
                     17: --EXPECT--
                     18: 03-15-2005 12:22:29.000000 PST
                     19: 03-15-2005 12:22:29.001000 PST (precision isn't enough to show the 1 here)
                     20: 03-15-2005 12:22:29.001000 PST

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>