Get time since given date
Posted: Tue Oct 16, 2007 9:14 pm
I am trying to find the amount of time that has passed since a given date (retrieved from a database), but I'm quite new to PHP date functions. I found this:
The date will be formatted like this: "15:30:14 Oct 16, 2007 PDT"
Where do I go from here?
Thanks.
Code: Select all
$dateSrc = $info['creationdate'];
$dateTime = new DateTime($dateSrc);Where do I go from here?
Thanks.