Topic: format_time() without relative date?
I've used this before in a couple of instances where I didn't want relative dates (e.g. "Today" or "Yesterday"); Thought I'd post a few lines here to see if anyone thinks it's worth a few extra bytes.
function format_time($timestamp, $date_only = false, $date_relative = true)
{
// rest of the function
if ($date_relative)
{
if ($date == $today)
$date = $lang_common['Today'];
else if ($date == $yesterday)
$date = $lang_common['Yesterday'];
}
// rest of the function
}