1--TEST--
2Tests for DateTimeImmutable.
3--INI--
4date.timezone=Europe/London
5--FILE--
6<?php
7$tz = new DateTimeZone("Asia/Tokyo");
8$current = "2012-12-27 16:24:08";
9
10echo "\ngetTimezone():\n";
11$v = date_create_immutable($current);
12$x = $v->getTimezone();
13var_dump($x->getName());
14
15echo "\ngetTimestamp():\n";
16$v = date_create_immutable($current);
17$x = $v->getTimestamp();
18var_dump($x);
19?>
20--EXPECT--
21getTimezone():
22string(13) "Europe/London"
23
24getTimestamp():
25int(1356625448)
26