(shrug) convert to unixtime, subtract, and reformat In fact, you could do the conversion and subtraction in your SQL query, returning just 'elapsed seconds since date', and reformat from there.
> I need a function that will get a date in the past and return how much > time has passed since that date till now. > The input to the function is a MySQL DATETIME format and the output > should be something like : > > 2 Years, 36 Days, 7 hours , 25 minutes > > I would write it but I'm pretty sure it has been done. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php