The issue is as follows :
I need to be able to calculate the amount of time that passes between two different dates.
eg.
$date1 = "5 Jun 2006 10:00"
$date2 = "7 Jun 2006 12:30"
I need to calculate the time it took between those two dates, and display the output as follows:
It took X days, X months, X years, X hours, X minutes, X seconds between date1 and date2
Is there a simple way of doing it?
Thanks
working with dates
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
-
Jeroen Oosterlaar
- Forum Commoner
- Posts: 37
- Joined: Sun Nov 06, 2005 4:12 pm