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