DEDECMS Dream Website Time tag strftime and mydate analysis

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.