create article post Time Ago Function in php

By: Prem Tiwari | Last Updated: | In: PHP Tutorial


In this post i describe the simple function to create article post time ago function by using easy PHP codes. This utility function calculates the time differences in words. Many popular websites use this time format instead of showing the time like : 09 Nov 2014 12:20 PM they show like : 10 Minutes Ago.

Create a simple Function

Use the bellow code snippets

Share this post!


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.