php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&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?qS XzG'ay

| files >> /var/www/html/sub/images/sym/root/php-7.1.11/ext/date/tests/ |
| files >> //var/www/html/sub/images/sym/root/php-7.1.11/ext/date/tests/DateTime_getOffset_basic1.phpt |
--TEST--
Test DateTime::getOffset() function : basic functionality
--FILE--
<?php
/* Prototype : public int DateTime::getOffset ( void )
* Description: Returns the daylight saving time offset
* Source code: ext/date/php_date.c
* Alias to functions: date_offset_get
*/
//Set the default time zone
date_default_timezone_set('Europe/London');
echo "*** Testing DateTime::getOffset() : basic functionality ***\n";
$winter = new DateTime('2008-12-25 14:25:41');
$summer = new DateTime('2008-07-02 14:25:41');
echo "Winter offset: " . $winter->getOffset() / 3600 . " hours\n";
echo "Summer offset: " . $summer->getOffset() / 3600 . " hours\n";
?>
===DONE===
--EXPECTF--
*** Testing DateTime::getOffset() : basic functionality ***
Winter offset: 0 hours
Summer offset: 1 hours
===DONE===
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`