1--TEST--
2DateInterval::format(), %a
3--CREDITS--
4Daniel Convissor <danielc@php.net>
5# TestFest 2010 BKTK
6--INI--
7date.timezone=UTC
8--FILE--
9<?php
10
11$date1 = new DateTime('2000-01-01 00:00:00');
12$date2 = new DateTime('2001-03-04 04:05:06');
13
14$interval = $date1->diff($date2);
15
16echo $interval->format('a=%a') . "\n";
17
18?>
19--EXPECT--
20a=428
21