smarty 模板中输出时间戳为年月日格式 日期:{:date('Y-m-d',$v['addtime'])} // $v['addtime']数据库中的时间戳 输出结果: 日期:{:date('Y-m-d H:i:s',$v['addtime'])} 输出结果: