织梦显示文章时间的方式
1、时间格式 {dede:field name=’pubdate’ function=’strftime(“%Y年%m月%d日 %H:%M:%S”,”@me”)’ /} {dede:field name=’pubdate’ function=’strftime(“%Y-%m-%d %H:%M:%S”,”@me”)’ /} {dede:field name=’pubdate’ function=’strftime(“%Y年%m月%d日 %H时%M分%S秒 /} {dede:field name=’pubdate’ function=’strftime(“%m-%d %H:%M:%S”,”@me”)’ /} {dede:field name=’pubdate’ function=’strftime(“%m-%d”,”@me”)’ /} %Y-年 2、24小时内的时间显示红色.. [field:pubdate runphp='yes'] 3、最后更新时间 最后更新时间:{dede:tagname = date(“Y-m-d H:i:s”,time());{/dede:tagname} 4、XX天前 [field:pubdate runphp='yes'] (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |