I have a little function that shows latest activity, it grab timestamp in unix format from the db, and then it echo out with this line:
date(\"G:i:s j M -Y\
function get_day_name($timestamp) { $date = date('d/m/Y', $timestamp); if($date == date('d/m/Y')) { $date = 'Today'; } else if($date == date('d/m/Y',now() - (24 * 60 * 60))) { $date = 'Yesterday'; } return $date; } print date('G:i:s', $last_access).' '.get_day_name($last_access);