PHP converts timestamps into English format

Source: Internet
Author: User

<?PHPEcho"Time format 1:".Date("Y-m-d h:i:s"). " <br> ";//2010-06-12 10:26:31Echo"Time Format 2:".Date("Y-m-d h:i:s"). " <br> ";//10-jun-sat 10:43:thEcho"Month, English full name:".Date("F"). " <br> ";//JuneEcho"Month, two digits, 0:".Date("M"). " <br> ";// .Echo"Month, two digits, not 0:".Date("n"). " <br> ";//6Echo"Month, three English:".Date("M"). " <br> ";//JuneEcho"Day of the week, English full name:".Date("L"). " <br> ";//SaturdayEcho"Days of the week, three English:".Date("D"). " <br> ";//SatEcho"Day of the week, digital type:".Date("W"). " <br> ";//6?>Y-year, four digits; such as: "1999"y-year, two digits; such as: "99"Z-The day of the year; such as: "0" to "365"F-month, full name in English; such as: "January"m-month, two digits, if less than two digits in front of 0; such as: "01" to "12"N-month, two digits, if less than two digits does not fill 0; such as: "1" to "12"M-month, three letters of English; such as: "Jan"T-The number of days in the specified month; such as: "28" to "31"D-A few days, two digits, if less than two is the front 0; such as: "01" to "31"J-A few days, two digits, if less than two digits do not fill 0; such as: "1" to "31"h-hour of 12 hours; such as: "01" to "12"H-hour of 24 hours; such as: "00" to "23"g-12-hour hour, less than two not 0; such as: "1" to 12 "G-24-hour hour, less than two bits not 0;"0" to "23"I-minute, such as:"00" to "59"S-sec; for example:"00" to "59"S-End with English ordinal number, two English letters;"th", "nd"U-Total seconds D-days of the week, three English letters;"Fri"L-Day of the week, full English name, e.g.:"Friday"W-Number of days of the week, such as:"0" (Sunday) to "6"(Saturday) A-"AM" or "PM"A-"AM" or "PM"

PHP converts timestamps into English format

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.