Posted By

koguee on 05/22/13


AGE minute

Versions (?)

Derive Age of a MySQL tuple in minutes

 / Published in: MySQL

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

  1. ...
  2. TIMESTAMPDIFF(MINUTE,<datetime_attribute>,NOW()) AS age
  3. ...

Report this snippet  

You need to login to post a comment.