/plugins/tpl/common/modifier.date_format.php

Description

Plugin from smarty project and adapted for jtpl

  • author: Smarty team
  • copyright: 2001-2003 ispi of Lincoln, Inc., Yannick Le Guédart
  • link: http://jelix.org/
  • link: http://smarty.php.net/
  • contributor: Yannick Le Guédart <yannick at over-blog dot com>
  • licence: GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
  • filesource: Source Code for this file
Functions
jtpl_modifier_common_date_format (line 24)

modifier plugin : format a date

  {$mydate|date_format:"%b %e, %Y"}

string|void jtpl_modifier_common_date_format (string $string, [string $format = &quot;%b %e, %Y&quot;], [string $default_date = null])
  • string $string: input date string
  • string $format: strftime format for output
  • string $default_date: default date if $string is empty

Documentation generated on Thu, 22 Mar 2012 22:17:48 +0100 by phpDocumentor 1.4.3