Use the function date () to implement the
Copy Code code as follows:
<?php Echo $showtime =date ("y-m-d h:i:s");? >
displayed in the format: year-month-day hours: minutes: sec
Related Time parameters:
A-"AM" or "PM"
A-"AM" or "PM"
D-days, two digits, if less than two digits before 0; for example: "01" to "" "
D-Day of the week, three English letters; for example:" Fri "
F -month, full name in English; such as: "January"
h-12 hours, such as: "01" to "the"
H-24 hours of hours, such as: "00" to "" "
g-12 hours, less than two-bit 0; For example:" 1 "to 12 "
G-24 hours of hours, less than two bits not to fill 0;" such as: "0" to "a"
I-min; such as: "00" to "two"
J-days, two digits, if less than digits do not fill 0, such as: "1" to ""
L-Day of the week, the full name of the English language, such as: "Friday"
M- month, two digits, if less than two digits in front of the 0; such as: "01" to "the"
N-month, two digits, if less than two digits, do not make up 0, such as: "1" to ""
M-month, three English letters, such as: "The" "" after "
S-second, such as:" 00 "to" the "
S- The end of the word plus English ordinal number, two English letters; such as: "th", "nd"
T-Specify the number of days of the month; such as: "28" to "
U-Total seconds
W-Number of days of the week, such as:" 0 "(Sunday) to" 6 "(Saturday)
Y-year, four digits; 1999 "
Y-year, two digits; such as:" "
Z-day of the Year; For example:" 0 "to" 365 "