date() getdate() PHP
» PHP 5 » date() getdate()
, date() , ( 14.4).
14.4.
‹html›
‹head›
‹title› ‹/title›
‹/head›
‹body›
‹?php
echo date("d.m.y H.i.s", 0);
// "01.01.70 03:00:00"
?›
‹/body›
‹/html›
, , , , Unix. . . , , , .
, date() . (, ..), getdate() - 14.5.
14.5. getdate()
‹html›
‹head›
‹title› getdate() ‹/title›
‹/head›
‹body›
‹pre›
‹?php
print_r (getdate());
?›
‹/pre›
‹/body›
‹/html›
getdate() . .
.
Second | 0 59 | Integer | |
Minutes | 0 59 | Integer | |
Hours | 0 23 | Integer | |
Mday | 1 31 | Integer | |
Wday | 0 () 6 () | Integer | |
1 12 | Integer | ||
Year | 4 | Integer | |
Yday | 0 366 | Integer | |
Weekday | Sunday Saturday | String | |
Month | January December | String | |
0 | Integer |