<p>smarty模板输出:<br /> |
|
<br /> |
|
输出数据库保存的时间戳:<{ $time |date_format: '%Y-%m-%d %H:%M:%S' }> |
<br /> |
昨 天:<{ $yesterday |date_format: '%Y-%m-%d %H:%M:%S' }> |
|
<br /> |
|
今天:<{ $today |date_format: '%Y-%m-%d %H:%M:%S' }> |
|
<br /> |
|
明天:<{ $tomorrow |date_format: '%Y-%m-%d %H:%M:%S' }> |
|
</p> |
|
<p> |
|
昨天:<{ $yesterday1 |date_format: '%Y-%m-%d %H:%M:%S' }> |
|
<br /> |
|
今天:<{ $today1 |date_format: '%Y-%m-%d %H:%M:%S' }> |
|
<br /> |
|
明天:<{ $tomorrow1 |date_format: '%Y-%m-%d %H:%M:%S' }> |
|
</p> |
|
smarty保留变量输出:<{ $smarty .now|date_format: "%Y-%m-%d %H:%M:%S" }> |