xref: /PHP-7.4/ext/date/tests/bug69089.phpt (revision d20da1d9)
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--EXPECT--
15string(29) "2009-09-28T09:45:31.918-03:00"
16string(6) "918312"
17string(3) "918"
18