Will now accept a second parameter (an epoch) to calculate date outputs.
This commit is contained in:
parent
05c41b5276
commit
fc7f447c34
1 changed files with 3 additions and 2 deletions
|
|
@ -16,9 +16,10 @@ use WebGUI::Macro;
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub _replacement {
|
||||
my (@param, $temp);
|
||||
my (@param, $temp, $time);
|
||||
@param = WebGUI::Macro::getParams($_[0]);
|
||||
$temp = epochToHuman(time(),$param[0]);
|
||||
$time = $param[1] || time();
|
||||
$temp = epochToHuman($time,$param[0]);
|
||||
return $temp;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue