位置:- 正文

织梦模板DEDECMS时间格式pubdate表达方式的源码(织梦模板安装完整教程)

编辑:rootadmin

推荐整理分享织梦模板DEDECMS时间格式pubdate表达方式的源码(织梦模板安装完整教程),希望有所帮助,仅作参考,欢迎阅读内容。

织梦模板DEDECMS时间格式pubdate表达方式的源码(织梦模板安装完整教程)

文章相关热门搜索词:织梦模板修改教程,织梦模板修改教程,织梦模板源码下载,织梦模板转讯睿模板,织梦模板安装详细教程,织梦模板如何安装,织梦模板源码下载,织梦模板修改教程,内容如对您有帮助,希望把文章链接给更多的朋友!

时间格式{dede:field name='pubdate' function='strftime("%Y年%m月%d日 %H:%M:%S","@me")' /}2007年1月1日 18:30:02{dede:field name='pubdate' function='strftime("%Y-%m-%d %H:%M:%S","@me")' /}2007-1-1 18:30:02{dede:field name='pubdate' function='strftime("%Y年%m月%d日 %H时%M分%S秒","@me")' /}2007年1月1日 18时30分02秒{dede:field name='pubdate' function='strftime("%m-%d %H:%M:%S","@me")' /}1-1 18:30:02{dede:field name='pubdate' function='strftime("%m-%d","@me")' /}1-1%Y-年%m-月%d-日%H-小时%M-分%S-秒24小时内的时间显示红色..[field:pubdate runphp='yes']$a="";$b="";$c=strftime("%Y年%m月%d日 %H:%M:%S","@me");$ntime = time();$oneday = 3600 * 24;if(($ntime-@me)<$oneday) @me = $a.$c.$b;else @me =$c;[/field:pubdate]最后更新时间最后更新时间:{dede:tagname runphp='yes'}@me = date("Y-m-d H:i:s", time());{/dede:tagname}XX天前[field:pubdate runphp='yes']$today = Floor(time()/(3600 * 24));$senday= Floor(@me/(3600 * 24));$updays = $today-$senday;if($updays==0) @me = "今日";else @me = $updays."天前";[/field:pubdate]

免责

本文链接地址:https://www.jiuchutong.com/zhishi/310530.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/310531.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络