Date

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

Date

Post by anthony88guy »

How would you suggest about doing this. I need to display the date in the following format: 10 seconds ago or 10 minutes ago or 10 days ago. Depending on the time that went by.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

strtotime() seems like a likely option ;-)

EDIT | Misunderstood the question
Post Reply