xref: /PHP-8.2/ext/date/tests/bug69089.phpt (revision 7aacc705)
1--TEST--
2Bug #69089 (Add support for RFC3339 extended to DateTime::format)
3--CREDITS--
4Mariano Iglesias <mariano@cricava.com>
5--FILE--
6<?php
7date_default_timezone_set('America/Buenos_Aires');
8
9$date = new DateTime('2009-09-28 09:45:31.918312');
10
11var_dump($date->format(DateTime::RFC3339_EXTENDED));
12var_dump($date->format('u'));
13var_dump($date->format('v'));
14?>
15--EXPECT--
16string(29) "2009-09-28T09:45:31.918-03:00"
17string(6) "918312"
18string(3) "918"
19