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? Quote 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. Quote 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 Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.