Phpcms V9 Full Station universal Date Time label

Source: Internet
Author: User

When building a station with Phpcms V9, the time tag is often used, it is the universal tag call-date time format, applicable to the whole station.

1, Date time format display:

A\ Standard type: {date (' y-m-d h:i:s ', $rs [' Inputtime '])} output: 2013-01-31 13:15:10

B\ split: {date (' Y ', $rs [Inputtime]} year {date (' m ', $rs [Inputtime]} month {date (' d ', $rs [Inputtime])} Day output: January 31, 2013

C\ Extended Type:

{Date (' Y ', $inputtime);} 4-bit year output is: 2013 or 2014

{Date (' Y ', $inputtime);} 2-bit year output is: 10 or 11

{Date (' F ', $inputtime);} English month full name output is: January to December

{Date (' M ', $inputtime);} English month abbreviation output is: Jan to Dec

{date (' m ', $inputtime);} Leading 0 digit month output: 01 to 12

{Date (' n ', $inputtime);} Numeric month output: 1 to 12

{Date (' d ', $inputtime);} Leading 0-period output: 01 to 31

{Date (' J ', $inputtime);} The date output is: 1 to 31

{Date (' l ', $inputtime);} English week full name output: Sunday to Saturday

{Date (' D ', $inputtime);} English week abbreviation output is: Mon to Sun

{Date (' N ', $inputtime);} Format Numeric Week output: 1 to 7

{Date (' y-m-d h:i:s ', $rs [inputtime]+30*60)} Add some time after getting the article time

Source: http://blog.csdn.net/zsj523/article/details/21239273

Phpcms V9 Full Station universal Date Time label

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.