1--TEST-- 2IntlTimeZone::getOffset(): 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); 12$ams = IntlTimeZone::createTimeZone('Europe/Amsterdam'); 13 14$date = strtotime("1 July 2012 +0000"); 15 16var_dump($ams->getOffset($date *1000., true, $rawOffset, $dstOffset), 17 $rawOffset, $dstOffset); 18 19$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon'); 20 21var_dump(intltz_get_offset($lsb, $date *1000., true, $rawOffset, $dstOffset), 22 $rawOffset, $dstOffset); 23 24?> 25==DONE== 26--EXPECT-- 27bool(true) 28int(3600000) 29int(3600000) 30bool(true) 31int(0) 32int(3600000) 33==DONE== 33