Time Elapsed Function


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

Use by sending a unix timestamp to countTime(timestamp). It will return something like 40 seconds , 2 weeks, 1 hour. Then just format to your needs like we do in our app: Someone was here 10 minutes ago.

URL: http://www.gruburg.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.