xref: /PHP-8.1/ext/date/tests/date_create-2.phpt (revision 1461f8ef)
1--TEST--
2date_create() function [2]
3--FILE--
4<?php
5date_default_timezone_set("GMT");
6$d = date_create("2005-07-18 22:10:00 +0400");
7echo $d->format('D, d M Y H:i:s T'), "\n";
8
9$d = date_create("@1121710200 +0912");
10echo $d->format('D, d M Y H:i:s T'), "\n";
11?>
12--EXPECT--
13Mon, 18 Jul 2005 22:10:00 GMT+0400
14Mon, 18 Jul 2005 18:10:00 GMT+0000
15