Source for file modifier.date_format.php
Documentation is available at modifier.date_format.php
* Include the {@link shared.make_timestamp.php} plugin
require_once $smarty->_get_plugin_filepath('shared', 'make_timestamp');
* Smarty date_format modifier plugin
* Purpose: format datestamps via strftime<br>
* - string: input date string
* - format: strftime format for output
* - default_date: default date if $string is empty
* @link http://smarty.php.net/manual/en/language.modifier.date.format.php
* date_format (Smarty online manual)
* @author Monte Ohrt <monte at ohrt dot com>
* @uses smarty_make_timestamp()
} elseif ($default_date != '') {
if (DIRECTORY_SEPARATOR == '\\') {
$_win_from = array('%D', '%h', '%n', '%r', '%R', '%t', '%T');
$_win_to = array('%m/%d/%y', '%b', "\n", '%I:%M:%S %p', '%H:%M', "\t", '%H:%M:%S');
if (strpos($format, '%e') !== false) {
if (strpos($format, '%l') !== false) {
/* vim: set expandtab: */
|