ThinkPHP/Library/Vendor/Smarty/pluginsmodifier.date_format.php

Smarty plugin

Functions

smarty_modifier_date_format()

smarty_modifier_date_format(string  $string, string  $format = SMARTY_RESOURCE_DATE_FORMAT, string  $default_date = '', string  $formatter = 'auto') : string

Smarty date_format modifier plugin

Type: modifier
Name: date_format
Purpose: format datestamps via strftime
Input:

  • string: input date string
  • format: strftime format for output
  • default_date: default date if $string is empty

Parameters

string $string

input date string

string $format

strftime format for output

string $default_date

default date if $string is empty

string $formatter

either 'strftime' or 'auto'

Returns

string —

|void