1--TEST-- 2DateInterval::format(), %a 3--CREDITS-- 4Daniel Convissor <danielc@php.net> 5# TestFest 2010 BKTK 6--INI-- 7date.timezone=UTC 8--SKIPIF-- 9<?php 10if (!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 20echo $interval->format('a=%a') . "\n"; 21 22?> 23--EXPECT-- 24a=428 25