Mysql
 sql >> Base de données >  >> RDS >> Mysql

Comment changer la date mysql en Ago en php

function ago( $time ){
    /* as found on css-tricks */
}

$date='2016-01-21 23:15:00';
$timestamp=strtotime($date);
echo ago( $timestamp );