summaryrefslogtreecommitdiff
path: root/ext/date/tests/date_create-2.phpt
blob: 206a0ab7f98b999d4604aab43352e5de3b8c998c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
date_create() function [2]
--FILE--
<?php
date_default_timezone_set("GMT");
$d = date_create("2005-07-18 22:10:00 +0400");
echo $d->format('D, d M Y H:i:s T'), "\n";

$d = date_create("@1121710200 +0912");
echo $d->format('D, d M Y H:i:s T'), "\n";
?>
--EXPECT--
Mon, 18 Jul 2005 22:10:00 GMT+0400
Mon, 18 Jul 2005 18:10:00 GMT+0000