Simple function for converting unix timestamp to user friendly date

/ Published in: PHP
Save to your folder(s)

A simple function for converting a php timestamp (integer) to a user frindly format. Examples: 10 Seconds ago, 4 Days ago. The function converts timestamp to U.F. format only if the timestamp is earlyer than one week. Otherwise it uses $dateFormat argument to display the date.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.