Esempio n. 1
0
<?php

ini_set("intl.error_level", E_WARNING);
$ams = IntlTimeZone::createTimeZone('Europe/Amsterdam');
$date = strtotime("1 July 2012 +0000");
var_dump($ams->getOffset($date * 1000.0, true, $rawOffset, $dstOffset), $rawOffset, $dstOffset);
$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
var_dump(intltz_get_offset($lsb, $date * 1000.0, true, $rawOffset, $dstOffset), $rawOffset, $dstOffset);
?>
==DONE==
Esempio n. 2
0
<?php

ini_set("intl.error_level", E_WARNING);
$tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
var_dump($tz->getOffset(INF, true, $a, $a));
var_dump($tz->getOffset(time() * 1000, true, $a));
var_dump($tz->getOffset(time() * 1000, true, $a, $a, $a));
intltz_get_offset(null, time() * 1000, false, $a, $a);