<?php include('date_difference_class.php'); // -- first parameter must be greater date -- $result = new date_difference("01.01.2007 11:02:02", "20.12.2006 10:00:00"); echo $result->days . ' days ' . $result->hours . ' hours ' . $result->minutes . ' minutes ' . $result->seconds . ' seconds'; ?>