mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
minor doc update
This commit is contained in:
@@ -501,18 +501,15 @@ Dealers Will Hear Car Talk at Noon.
|
|||||||
<example>
|
<example>
|
||||||
<title>date_format</title>
|
<title>date_format</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
{$currentDate}
|
{$smarty.now|date_format}
|
||||||
{$currentDate|date_format:"%A, %B %e, %Y"}
|
{$smarty.now|date_format:"%A, %B %e, %Y"}
|
||||||
{$currentDate|date_format:"%H:%M:%S"}
|
{$smarty.now|date_format:"%H:%M:%S"}
|
||||||
{* format current time if $currentDate is empty *}
|
|
||||||
{$currentDate|date_format:"%H:%M:%S":"now"}
|
|
||||||
|
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
|
|
||||||
Feb 6, 2001
|
Feb 6, 2001
|
||||||
Tuesday, February 6, 2001
|
Tuesday, February 6, 2001
|
||||||
14:33:00
|
14:33:00</programlisting>
|
||||||
22:23:12</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
<example>
|
<example>
|
||||||
<title>date_format conversion specifiers</title>
|
<title>date_format conversion specifiers</title>
|
||||||
|
Reference in New Issue
Block a user