1--TEST--
2Test date_offset_get() function : basic functionality
3--FILE--
4<?php
5//Set the default time zone
6date_default_timezone_set('Europe/London');
7
8echo "*** Testing date_offset_get() : basic functionality ***\n";
9
10$winter = date_create('2008-12-25 14:25:41');
11$summer = date_create('2008-07-02 14:25:41');
12
13echo "Winter offset: " . date_offset_get($winter) / 3600 . " hours\n";
14echo "Summer offset: " . date_offset_get($summer) / 3600 . " hours\n";
15
16?>
17--EXPECT--
18*** Testing date_offset_get() : basic functionality ***
19Winter offset: 0 hours
20Summer offset: 1 hours
21