Parameters in the date function of PHP date PHP

Source: Internet
Author: User
This thing is full of streets, but I do not want a clear and complete article, write it, as a memo.

Date ()
Y: Year, four digits
Y: Year, two digits
F: Month, English full name, such as: "January"
M: month, two digits, from "01" to "12"
N: month, two digits, not 0; from "1" to "12"
M: Month, 3 English letters, e.g.: "Jan"
S: English ordinal number, two English letters, such as: "21th"
D: A few days, two digits, if insufficient 0; from "01" to "31"
J: Few days, not enough to be 0; from "1" to "31"
D: Day of the week, 3 English letters, such as: "Fri"
L: Day of the week, English full name, such as: "Friday"
W: Number of days of the week, from "0 (Sunday)" to "6 (Saturday)"
H:12 hours, from "01" to "12"
H: 24-hour hour, from "00" to "23"
G:12 hours of the hour, not 0; from "1" to "12"
G: 24-hour hour, not 0; from "0" to "23"
s: seconds; from "00" to "59"
A: "AM" or "PM"
A: "AM" or "PM"
R: represents RFC822 Date (Tue, 2007 14:25:52 +0000)
C: ISO8601 date, date format is yyyy-mm-dd, the letter T is used to interval the date and time, the time format is HH:MM:SS, and the time zone is represented by the deviation of Greenwich Mean Time (GMT). (2007-02-06t14:24:43+00:00)
I: is daylight saving time
T: Server's time zone setting
L: Whether it is a leap year
W: The number of weeks in a year
T: Specify the number of days of the month, from "28" to "31"
U: Total number of seconds (timestamp)
Z: The day of the Year; from "1" to "366"

The above describes the PHP date PHP in the date function of the parameters, including the PHP date content, I hope the PHP tutorial interested in a friend helpful.

  • 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.