1.格式化时间
{$temp.create_time|date_format:'%Y-%m-%d %H:%M:%S'}
2.循环索引
{assign var="i" value=$num}
{assign var="i" value=$i+1}{$i}
3.判断星期几
{'Y-m-d'|date:$key} {$key|date_format:"%a"|replace:"Sun":"周日"|replace:"Mon":"周一"|replace:"Tue":"周二"|replace:"Wed":"周三"|replace:"Thu":"周四"|replace:"Fri":"周五"|replace:"Sat":"周六"}
4.计算数组的个数
{$infoArr|@count}