xref: /php-src/ext/date/tests/date_modify-2.phpt (revision 1461f8ef)
1--TEST--
2date_modify() function [2]
3--FILE--
4<?php
5date_default_timezone_set("GMT");
6$d = date_create("2005-07-18 22:10:00 +0400");
7echo date_format($d, 'D, d M Y H:i:s T'), "\n";
8date_modify($d, "+1 hour");
9echo date_format($d, 'D, d M Y H:i:s T'), "\n";
10?>
11--EXPECT--
12Mon, 18 Jul 2005 22:10:00 GMT+0400
13Mon, 18 Jul 2005 23:10:00 GMT+0400
14