This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/includes/smarty/plugins/function.date.php
2008-11-26 14:50:40 -08:00

16 lines
349 B
PHP

<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* File: function.date
* Type: function
* Name: date
* -------------------------------------------------------------
*/
function smarty_function_date($params, &$smarty)
{
extract($params);
echo date(UNIX_DATE_FORMAT,$date);
}
?>