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_time.php

18 lines
415 B
PHP
Raw Normal View History

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