|
Posted by b-bonini on 10/09/63 11:25
for($i=1;$i<13;$i++) {
echo $i . " :: ";
echo date('F', mktime(0, 0, 0, $i)) . " :: ";
echo mktime(0, 0, 0, $i) . "\n";
}
1 :: January :: 1107061200
2 :: March :: 1109739600
3 :: March :: 1112158800
4 :: April :: 1114833600
5 :: May :: 1117425600
6 :: June :: 1120104000
7 :: July :: 1122696000
8 :: August :: 1125374400
9 :: September :: 1128052800
10 :: October :: 1130644800
11 :: November :: 1133326800
12 :: December :: 1135918800
** Note March where February should be :).
I've been able to duplicate this on a few different versions and systems:
PHP Version 5.0.5-dev
System FreeBSD gfx 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Wed Aug i386
PHP Version => 4.3.5
System => SunOS tkdev 5.8 Generic_108528-17 sun4u
PHP Version => 4.3.3
System => Linux home 2.4.22-37mdk #1 Wed Aug 11 21:52:56 MDT 2004 i686
Navigation:
[Reply to this message]
|