Example #1
0
 /** 
 Used to return a quick time stamp. Used from certain theme routines.
 */
 function ps_time_stamp($epoch, $fmt = null)
 {
     global $ps;
     if (!$fmt) {
         $fmt = $ps->conf['theme']['format']['time'];
     }
     if (empty($fmt)) {
         $fmt = "H:i:s";
     }
     return ps_date($fmt, $epoch);
 }
Example #2
0
/**
 * Smarty date modifier plugin
 *
 * Type:     modifier<br>
 * Name:     date<br>
 * Purpose:  returns a formatted date using date()
 * @param integer
 * @return string
 */
function smarty_modifier_date($time, $format = '', $ignore_ofs = false)
{
    return ps_date($format, $time, $ignore_ofs);
}