導讀:織夢技巧織夢技巧時間格式 {dede:field name=pubdate function=strftime(%Y年%m月%d日 %H:%M:%S,@me) /}2007年1網站seo優化網站seo優化課程。
時間格式 {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 […]
時間格式
{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(&網站建設制作quot;%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 網站seo優化軟件* 24));
$updays = $today-$senday;
if($updays==0) @高端網站建設me = "今日";
else @me = $updays."天前";
[/field:pubdate]
相關網站seo優化網站seo優化課程。
關鍵詞標簽: CMS 源碼 表達方式
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-25 ,文章織夢模板DEDECMS時間格式pubdate表達方式的源碼織夢主要講述表達方式,源碼,CMS網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_8307.html