determine number of days, hours & minutes between 2 dates

From: Date: Wed, 17 Jan 2001 20:16:00 +0000
Subject: determine number of days, hours & minutes between 2 dates
Groups: php.general 
Request: Send a blank email to php-general+get-35133@lists.php.net to get a copy of this message
The subject pretty much explains it all. I have 2 dates (YYYYMMDDHHSS format) and want to determine the number of days, hours, minutes and seconds left from the later date to the earlier date. I figure I could do all this using date arithmatic, divide by 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day and so forth, but was wondering if there a better (or easier way) to do this before I start coding away.? _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/

« previous php.general (#35133) next »