mazman13 Posted May 7, 2009 Share Posted May 7, 2009 I'm putting my twitter feed on my site and I'm grabbing the rss feed. I want it to kinda be like the site where gives the time of posting at the bottom. Something like "15 minutes" or "about an hour" type of deal. Anybody have a script that I can use? Link to comment https://forums.phpfreaks.com/topic/157278-solved-anybody-have-a-script-for-a-1-day-ago13-minutes-ago/ Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 Those scripts just run a query that selects the time it is now minus the time posted and then use some IF or switch statements to display some of those text. Link to comment https://forums.phpfreaks.com/topic/157278-solved-anybody-have-a-script-for-a-1-day-ago13-minutes-ago/#findComment-828918 Share on other sites More sharing options...
premiso Posted May 7, 2009 Share Posted May 7, 2009 http://snippets.dzone.com/posts/show/3044 Found by googling php time since Link to comment https://forums.phpfreaks.com/topic/157278-solved-anybody-have-a-script-for-a-1-day-ago13-minutes-ago/#findComment-828920 Share on other sites More sharing options...
mazman13 Posted May 8, 2009 Author Share Posted May 8, 2009 Sweet. Thanks! Link to comment https://forums.phpfreaks.com/topic/157278-solved-anybody-have-a-script-for-a-1-day-ago13-minutes-ago/#findComment-829568 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.