1--TEST-- 2IntlCalendar::setTime() basic test 3--INI-- 4date.timezone=Atlantic/Azores 5--SKIPIF-- 6<?php 7if (!extension_loaded('intl')) 8 die('skip intl extension not enabled'); 9--FILE-- 10<?php 11ini_set("intl.error_level", E_WARNING); 12ini_set("intl.default_locale", "nl"); 13 14$time = strtotime('2012-02-29 00:00:00 +0000'); 15 16$intlcal = IntlCalendar::createInstance('UTC'); 17$intlcal->setTime($time * 1000); 18 19var_dump( 20 (float)$time*1000, 21 $intlcal->getTime()); 22 23$intlcal = IntlCalendar::createInstance('UTC'); 24intlcal_set_time($intlcal,$time * 1000); 25var_dump(intlcal_get_time($intlcal)); 26 27?> 28==DONE== 29--EXPECT-- 30float(1330473600000) 31float(1330473600000) 32float(1330473600000) 33==DONE== 33