working with dates
Posted: Thu Jul 20, 2006 1:48 am
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
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