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: Link to comment https://forums.phpfreaks.com/topic/93906-date-problem/ 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 Link to comment https://forums.phpfreaks.com/topic/93906-date-problem/#findComment-481203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.