38 require_once realpath(dirname(__FILE__).
"/abstract_type_renderer.inc");
64 static function format($timestamp, $template =
"")
66 trace(
"TimestampTypeRenderer template is $template and value is $timestamp", 5);
70 if (!$timestamp)
return "N/A";
74 elseif($timestamp && !$template)
75 $template =
"Y-m-d H:i:s";
81 $dateObj =
new DateTime($timestamp);
82 $text = $dateObj->format($template);
static translationDateTemplate($template, $includeTime=true)
static format($timestamp, $template="")
trace($msg, $lvl=3, $callStack=null)
Send output to the trace log.