導讀:標簽調用標簽調用時間格式 {dede:field name=pubdate function=strftime(%Y年%m月%d日 %H:%M:%S,@me) /}2007年1seo網站排名優化軟件網站優化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=strftim […]
時間格式
{dede:field name='pubdate' function='strftime("%Y年%m月%d日 %H:%M:%S","@me")' /}2007年1月1日 18:30:02網站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("%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="<font color='#ff0網站seo優化軟件000'>";
$b="</font>";
$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]相關seo網站排名優化軟件網站優化seo培訓。
關鍵詞標簽: 標簽 格式
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-26 ,文章dede時間格式匯總標簽調用主要講述標簽,格式,dede時間格式匯總標簽調用1網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_9830.html