1--TEST--
2IntlCalendar::toDateTime(): basic test
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8//ini_set("intl.default_locale", "nl");
9ini_set('date.timezone', 'Europe/Lisbon');
10
11$cal = new IntlGregorianCalendar(2012,04,17,17,35,36);
12
13$dt = $cal->toDateTime();
14
15var_dump($dt->format("c"), $dt->getTimeZone()->getName());
16?>
17--EXPECT--
18string(25) "2012-05-17T17:35:36+01:00"
19string(13) "Europe/Lisbon"
20