update
This commit is contained in:
17
core/plugins/Smarty/function.mt2date.php
Normal file
17
core/plugins/Smarty/function.mt2date.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
* Smarty plugin
|
||||
* -------------------------------------------------------------
|
||||
* File: function.url.php
|
||||
* Type: function
|
||||
* Name: link
|
||||
* Purpose: zwraca datę o podanym formacie dla zadanego microtime
|
||||
* -------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
function smarty_function_mt2date($params, &$smarty){
|
||||
$format = (isset($params['format'])?$params['format']:'d.m.Y G:i:s');
|
||||
return (isset($params['time'])?date($format,$params['time']):null);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user