pm_time_pretty_printing

A universal function that converts the number of seconds to a pretty format. If the number of seconds is less than a day, the time format is selected, otherwise the day and time format is applied.

Syntax

pm_time_pretty_printing ($tval, $format)

Parameters

tval

      A string value with the number of seconds to print.

format

      A string value with the time format to apply. By default, the string is empty (' ').

Returns

A string value formatted as specified.

Remarks

If the format parameter is not specified, the function applies default formats $def_date_format and $def_time_format.

Include: pm.php.