php-src/ext/date/tests/date_modify-2.phpt
Derick Rethans d060a6e8a2 - MFH: Updated timezonedb to version 2006.7.
- MFH: Fixed test cases because of new constant values for the formats.
2006-07-04 18:13:58 +00:00

16 lines
410 B
PHP

--TEST--
date_modify() function [2]
--SKIPIF--
<?php if (!function_exists('date_create')) echo "SKIP"; ?>
--FILE--
<?php
date_default_timezone_set("GMT");
$d = date_create("2005-07-18 22:10:00 +0400");
echo date_format($d, 'D, d M Y H:i:s T'), "\n";
date_modify($d, "+1 hour");
echo date_format($d, 'D, d M Y H:i:s T'), "\n";
?>
--EXPECT--
Mon, 18 Jul 2005 22:10:00 GMT+0400
Mon, 18 Jul 2005 23:10:00 GMT+0400