PHPDate()函数详细参数.docx.pdf
《PHPDate()函数详细参数.docx.pdf》由会员分享,可在线阅读,更多相关《PHPDate()函数详细参数.docx.pdf(8页珍藏版)》请在三一文库上搜索。
1、PHP Date ()函数详细参数 Add to the front page of the page Date_default_timezone_set (PRC) ; / * the time to Beijing time, the default is PHP5 GMT * / Date () A: m( am or rM A: 人Am( AM or PM D: a few days, two figures, if not enough, make up zero; from 01 to 31 D: weeks, 3 English letters, such as F: month
2、s, full name in English, such as: ,zJanuary. H: 12 hour hours, from 01 to 12 H: 24 hour hours, from 00 to 23 G: hours 12 hours, not zero; from 1 to 12 G: J : hours 24 hours, not zero; from 0 to 23 a few days, in sufficient not by zero; from to 31“ L: whats the weeks full English name, such as: “Frid
3、ay?“ M: months, two digits, from 01 to 12“ N: months, two digits, not zero; from 1 to 12 M: months, 3 English letters, such as: “Jan“ S: seconds; from 00to 59 S:, plus English ordinal, two English letters, such as 21th“ T: specifies the number of days in the month, from 28 to 31U: total seconds W: d
4、igital week, from 0 (Sunday) to 6 (Saturday) ,z In Y:, four digits In y:, two digits Z: the first few days of the year; from 1 to 366 1, year, month, day Indicates that Y and lowercase y can be capitalized in year; You can use uppercase F, uppercase M, lowercase m and lowercase n (two ways to repres
5、ent characters and numbers, respectively); Indicates that the day can be lowercase D and lowercase J, and uppercase S indicates the suffix of the date? Echo date (Y-m-j); 2007-02-6 Echo date ( y-n-j); 07-2-6 The upper case Y stands for the four digit number in the year, while the lower case y stands
6、 for the two digit number in the year; The lower case M represents the number of months (with the preamble), while the lower case n represents the month numbers without preamble? Echo date (Y-M-j); 2007-Feb-6 Echo date ( Y-m-d ,); 2007-02-06 The upper case M represents the 3 abbreviated characters i
7、n the month, while the lower case M represents the numbers in the month (with the leading 0); No uppercase J, only the lower case J represents the date of the month, no preamble o; if the month is preceded, the guideline uses lower case D. Echo date (Y-M-j); 2007-Feb-6 Echo date ( Y-F-jS); 2007-Febr
8、uary-6th The upper case represents the 3 short characters in the month, while the upper case means full English writing in the month? (no lowercase f) The upper case S indicates the suffix of the date, such as “ST“, “nd“, Rdand “th?What is the date of the date? 2 hours: Minutes: seconds By default,
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- PHPDate 函数 详细参数 docx
链接地址:https://www.31doc.com/p-5616294.html