9three Posted September 17, 2009 Share Posted September 17, 2009 Hey, Is anyone familiar with the method that is used to return a message "Posted 2 days ago"/hours/minutes/second instead of the actual date? I'm trying to figure out how I should store the time in my DB to make this outcome. Link to comment https://forums.phpfreaks.com/topic/174527-posted-2-seconds10-minutes2days-ago/ Share on other sites More sharing options...
corbin Posted September 17, 2009 Share Posted September 17, 2009 I suggest storing it as either DATETIME or a timestamp (I would go with DATETIME). But when ever you process it down to minutes/seconds so on, I would of course do it in seconds. Link to comment https://forums.phpfreaks.com/topic/174527-posted-2-seconds10-minutes2days-ago/#findComment-919855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.