Return to Snippet

Revision: 63614
at May 22, 2013 11:54 by koguee


Updated Code
...
TIMESTAMPDIFF(MINUTE,<datetime_attribute>,NOW()) AS age
...

Revision: 63613
at May 22, 2013 11:53 by koguee


Initial Code
TIMESTAMPDIFF(MINUTE,<datetime_attribute>,NOW())

Initial URL


Initial Description
Say you want to add on a mysql_fetch_assoc the age of a post or the tuple in minutes, use this.

Initial Title
Derive Age of a MySQL tuple in minutes

Initial Tags


Initial Language
MySQL