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-26 17:05  hepeacer  阅读(51)  评论(0)    收藏  举报