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
}

Re: format_time() without relative date?

you might wanna inform the fine punFolk here that this function is within include/functions.php smile

~thegleek

Re: format_time() without relative date?

just add in the option to turn it on/off in ./admin_options.php, and then punres it big_smile

echo "deadram"; echo; fortune;

Re: format_time() without relative date?

deadram wrote:

just add in the option to turn it on/off in ./admin_options.php, and then punres it big_smile

I'm not changing it everywhere; If I wanted that, I'd just comment it out.