![]() |
Documentación GVHIDRA 3.1.5
|
Ir al código fuente de este archivo.
Namespaces | |
namespace | Smarty |
Funciones | |
smarty_modifier_date_format ($string, $format="%b %e, %Y", $default_date=null) |
smarty_modifier_date_format | ( | $ | string, |
$ | format = "%b %e, %Y" , |
||
$ | default_date = null |
||
) |
Include the shared.make_timestamp.php plugin Smarty date_format modifier plugin
Type: modifier
Name: date_format
Purpose: format datestamps via strftime
Input:
string | |
string | |
string |
Definición en la línea 31 del archivo modifier.date_format.php.
{ if (substr(PHP_OS,0,3) == 'WIN') { $_win_from = array ('%e', '%T', '%D'); $_win_to = array ('%#d', '%H:%M:%S', '%m/%d/%y'); $format = str_replace($_win_from, $_win_to, $format); } if($string != '') { return strftime($format, smarty_make_timestamp($string)); } elseif (isset($default_date) && $default_date != '') { return strftime($format, smarty_make_timestamp($default_date)); } else { return; } }