Weave Dream Dedecms website time tag strftime and mydate parsing:
Many do weave the dream template friend, found Dedecms site many places show the time is different, I refer to the Weaving Dream template default time tag. That today and the webmaster friends to share the next weaving Dream dedecms time label full analysis. Copyright www.dedecmsmuban.com
First, the content page style:
Date: {field:pubdate function=strftime (' m-d ', @me)/} 01-01
Date: {field:pubdate function=strftime (' M D Day ', @me)/} January 01
Date: {field:pubdate function=strftime (' D Day ', @me)/} 01th
Date: {field:pubdate function=strftime (' y-m-d ', @me)/} 2012-01-01
Date: {field:pubdate function=strftime (' y-m-d ', @me)/} 12-01-01
The style of the list page and the homepage needs to be converted! Modified to read as follows:
Date: [Field:pubdate function= "mydate (' m-d ', @me)"/] 01-01
Date: [Field:pubdate function= "mydate (' m ' d ', @me)"/] January 01
Date: [Field:pubdate function= "mydate (' D Day ', @me)"/] 01th
Date: [Field:pubdate function= "mydate (' y-m-d ', @me)"/] 2012-01-01
Date: [Field:pubdate function= "mydate (' y-m-d ', @me)"/] 12-01-01
That all the time is basically here, it is important to note that the uppercase Y and lowercase y are different. A careful friend will find it! So we do the website to write code or to pay attention to the point of careful
Dede Time Label
[Field:pubdate function= ' strftime ("%y-%m-%d%h:%m:%s", @me) '/]
2008-11-01 11:11:52
[Field:pubdate function= ' strftime ("%y-%m-%d%h:%m:%s", @me) '/]
08-11-01 11:11:52
[Field:pubdate function= ' strftime ("%m-%d%h:%m:%s", @me) '/]
11-01 11:14:20
[Field:pubdate function= ' strftime ("%m-%d%h:%m", @me) '/]
11-01 11:14
[Field:pubdate function= ' strftime ("%y-%m-%d", @me) '/]
08-11-01
[Field:pubdate function= ' strftime ("%y year%m month%d Day", @me) '/]
November 01, 08
[Field:pubdate function= ' strftime ("%y years%m month%d days%h points%m minutes%s seconds", @me) '/]
November 01, 2008 11:17 36 seconds
[Field:pubdate function= ' strftime ("%b%d,%Y", @me) '/]
Nov 01, 2008
[Field:pubdate function= ' strftime ("%A on%b%d,%Y,%x:%Z", @me) '/]
Saturday on Nov 01, 2008, 11:21:06: China Standard Time
DEDECMS Dream Website Time tag strftime and mydate analysis