Show relative time that changes to default date after Midnight
<p>I would like to show "posted Today at" if the posted was posted today, and I know how to do that, but I would like it to show the default date and time format as of 12:01am, obviously because ita no longer posted "today", is there a way I can do this? Thanks for the help.</p>

<hr>

<p>Thanks, I'll try that, here is what i have.</p>

<pre><code>if($params['time'] &gt; (time() - (60*60*24))){

$old_time = $params['time'];

$hm = date("g:ia", $old_time);

$today = elgg_echo('friendly_time_today', array($hm));

return $today;

    return $today;

  } else if($params['time'] &gt; (time() - (60*60*48))){

$old_time = $params['time'];

$hm = date("g:ia", $old_time);

$yesturday = elgg_echo('friendly_time_yesturday', array($hm));

return $yesturday;

    return $yesturday; }
</code></pre>
