dedecms常用的时间格式调用代码

dedecms常用的时间格式调用代码:

{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

通过上面的代码即可调用更新时间,转载请注明:方圆扣

posted @ 2021-05-18 13:41  hepeacer  阅读(100)  评论(0)    收藏  举报