Mysql
 sql >> Database >  >> RDS >> Mysql

Come modificare la data di MySQL in Ago in php

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

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