php dateformat

1594 ワード

format    	   	     
  	--- 	---
d 	       ,      2     	01   31
D 	       ,    ,3     	Mon   Sun
j 	       ,      	1   31
l(“L”     ) 	   ,        	Sunday   Saturday
N 	ISO-8601               (PHP 5.1.0   ) 	1(     )  7(     )
S 	           ,2     	st,nd,rd    th。    j    
w 	       ,     	0(     )  6(     )
z 	        	0   366
   	--- 	---
W 	ISO-8601          ,        (PHP 4.1.0    ) 	  :42(     42  )
  	--- 	---
F 	  ,       ,   January    March 	January   December
m 	       ,     	01   12
M 	            	Jan   Dec
n 	       ,      	1   12
t 	           	28   31
  	--- 	---
L 	      	       1,    0
o 	ISO-8601       。   Y     ,      ISO     (W)         ,     。(PHP 5.1.0   ) 	Examples: 1999 or 2003
Y 	4            	  :1999   2003
y 	2          	  :99   03
   	--- 	---
a 	          	am   pm
A 	          	AM   PM
B 	Swatch Internet     	000   999
g 	  ,12     ,      	1   12
G 	  ,24     ,      	0   23
h 	  ,12     ,     	01   12
H 	  ,24     ,     	00   23
i 	         	00   59>
s 	  ,     	00   59>
   	--- 	---
e 	    (PHP 5.1.0   ) 	  :UTC,GMT,Atlantic/Azores
I 	       	        1,    0
O 	              	  :+0200
P 	       (GMT)   ,            (PHP 5.1.3   ) 	  :+02:00
T 	        	  :EST,MDT(【   】  Windows         ,  “Eastern Standard Time”,      “      ”)。
Z 	        。UTC             ,UTC             。 	-43200   43200
     /   	--- 	---
c 	ISO 8601      (PHP 5   ) 	2004-02-12T15:19:21+00:00
r 	RFC 822       	  :Thu, 21 Dec 2000 16:01:07 +0200
U 	  Unix   (January 1 1970 00:00:00 GMT)        	   time()