1--TEST-- 2IntlGregorianCalendar::__construct(): argument variants 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 11date_default_timezone_set('Europe/Amsterdam'); 12 13$intlcal = intlgregcal_create_instance(2012, 1, 29, 16, 0, NULL); 14var_dump($intlcal->getTimeZone()->getId()); 15var_dump($intlcal->getTime(), (float)strtotime('2012-02-29 16:00:00') * 1000); 16 17$intlcal = new IntlGregorianCalendar(2012, 1, 29, 16, 7, 8); 18var_dump($intlcal->getTime(), (float)strtotime('2012-02-29 16:07:08') * 1000); 19 20var_dump($intlcal->getType()); 21?> 22--EXPECT-- 23string(16) "Europe/Amsterdam" 24float(1330527600000) 25float(1330527600000) 26float(1330528028000) 27float(1330528028000) 28string(9) "gregorian" 29