PHP Miscellaneous (date)

Source: Internet
Author: User
  1. The correct way to get the timestamp from the beginning of the week based on the year and the first week
    Strtotime (' 2012-w50 ');
    Append: Gets the timestamp of the in N Days: Strtotime (' 2012-w50-2 ');
  2. The meaning of the letter can be used in the format **************/
    A – "AM" or "PM" A – "AM" or "PM" D – a few days, two digits, if less than two digits before 0; such as: "01" to "to" D – days, three English letters; such as: "Fri" F – month, English full name; such as: "January" h–12 hours of the hour system; such as: "01" to "h–24" hours of the hour system; such as: "00" to "g–12" hours of the hour system, less than two does not fill 0; such as: "1" to "g–24 hours of the hour, less than two does not fill 0;" such as: "0" to "I –" minutes; such as: "00" to "J –" A few days, two digits, if less than two does not fill 0; such as: "1" to "L –" Days of the week, English full name; such as: "Friday" M – month, two digits, if less than two digits in front of 0; such as: "01" to "three" N – month, two digits, if less than two will not fill 0; such as: "1" to "a" m – month, three English letters; such as: "Jan" s-seconds; such as: "00" to "s-" with the English ordinal number, two English letters; such as: "th", "nd" T-the number of days of the specified month; such as: "28" to "U" the total number of seconds W – number of days, such as: "0" (Sunday) to "6" (Saturday) y – years, four digits; such as: "1999" Y – year, two digits; such as: "Z –" the first day of the year; such as: "0" to "365"

PHP Miscellaneous (date)

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.