That's because that's all you need.
mktime() will return the current timestamp given the current date().
And then you simply subtract the timestamp tkane from the mktime() of the current date minus the mktime() of the date in the past.
Then you take that value and convert back from the timestamp into a date string.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks