Annotation of embedaddon/php/ext/date/tests/DateInterval_format_a.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: DateInterval::format(), %a
3: --CREDITS--
4: Daniel Convissor <danielc@php.net>
5: # TestFest 2010 BKTK
6: --INI--
7: date.timezone=UTC
8: --SKIPIF--
9: <?php
10: if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist");
11: ?>
12: --FILE--
13: <?php
14:
15: $date1 = new DateTime('2000-01-01 00:00:00');
16: $date2 = new DateTime('2001-03-04 04:05:06');
17:
18: $interval = $date1->diff($date2);
19:
20: echo $interval->format('a=%a') . "\n";
21:
22: ?>
23: --EXPECT--
24: a=428
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>