verdrm Posted March 1, 2008 Share Posted March 1, 2008 How do I calculate the time between today's date and the date of a post if the date is formatted in this way: Sun, Feb 24th, 2008 02:35:14 am EST so: date("D, M dS, Y h:i:s a T"); Ex: John said 2 days ago: Quote Link to comment Share on other sites More sharing options...
QuietWhistler Posted March 1, 2008 Share Posted March 1, 2008 Look at the gmmktime() function: http://nl3.php.net/manual/en/function.gmmktime.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.