<address id="r9vd9"><address id="r9vd9"><listing id="r9vd9"></listing></address></address>

      歡迎您光臨深圳塔燈網絡科技有限公司!
      電話圖標 余先生:13699882642

      dedecms時間格式匯總

      發表日期:2019-09 文章編輯:小燈 瀏覽次數:2795

      時間格式
      {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="<font color='#ff0000'>";
      $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]


      本頁內容由塔燈網絡科技有限公司通過網絡收集編輯所得,所有資料僅供用戶參考了本站不擁有所有權,如您認為本網頁中由涉嫌抄襲的內容,請及時與我們聯系,并提供相關證據,工作人員會在5工作日內聯系您,一經查實,本站立刻刪除侵權內容。本文鏈接:http://www.webpost.com.cn/11662.html
      相關cms文章
       八年  行業經驗

      多一份參考,總有益處

      聯系深圳網站公司塔燈網絡,免費獲得網站建設方案及報價

      咨詢相關問題或預約面談,可以通過以下方式與我們聯系

      業務熱線:余經理:13699882642

      Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.    

      国产成人精品综合在线观看