1. Calling syntax
Use the function date () implementation to get the current time format, for example:
2. Time format parameter setting
In the above syntax "y-m-d h:i:s", the format shown is: year-month-day hours: minutes: seconds
So we can replace the time format we want with the corresponding time parameter.
A – "AM" or "PM"
A – "AM" or "PM"
D – A few days, two digits, if less than two is the front 0; such as: "01″ to" 31″
D – Day of the week, three letters of English; such as: "Fri"
F – month, full name in English; such as: "January"
H–12 hours of the hour; such as: "01″ to" 12″
H–24 hours of the hour; such as: "00″ to" 23″
G–12 hours of the hour, less than two digits do not fill 0; such as: "1″ to 12″
G–24 hours of the hour, less than two digits do not fill 0; such as: "0″ to" 23″
I – minutes; such as: "00″ to" 59″
J – a few days, two digits, if less than two does not fill 0; such as: "1″ to" 31″
L – Day 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" 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"
S-seconds; such as: "00″ to" 59″
S-with English ordinal number, two English letters; such as: "th", "nd"
T-the number of days of the specified month; such as: "28″ to" 31″
U total number of seconds
W – Number of days of the week, such as: "0″ (Sunday) to" 6″ (Saturday)
Y – year, four digits; such as: "1999″
Y – year, two digits; such as: "99″
Z – The first day of the year; such as: "0″ to" 365″
http://www.bkjia.com/PHPjc/327412.html www.bkjia.com true http://www.bkjia.com/PHPjc/327412.html techarticle 1, call the syntax using the function date () implementation to get the current time format, for example: 2, the time format parameter set the above syntax "y-m-d h:i:s", the format is: year-month-day hour ...