Annotation of embedaddon/php/ext/date/tests/date_modify-2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: date_modify() function [2]
3: --SKIPIF--
4: <?php if (!function_exists('date_create')) echo "SKIP"; ?>
5: --FILE--
6: <?php
7: date_default_timezone_set("GMT");
8: $d = date_create("2005-07-18 22:10:00 +0400");
9: echo date_format($d, 'D, d M Y H:i:s T'), "\n";
10: date_modify($d, "+1 hour");
11: echo date_format($d, 'D, d M Y H:i:s T'), "\n";
12: ?>
13: --EXPECT--
14: Mon, 18 Jul 2005 22:10:00 GMT+0400
15: Mon, 18 Jul 2005 23:10:00 GMT+0400
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>