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