You are here: Re: [PHP] Bug?? « PHP « IT news, forums, messages
Re: [PHP] Bug??

Posted by Scott Noyes on 10/18/69 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

Today is the 30th (in some parts of the world, anyway). mktime fills
in the current time is no argument is provided. So for Feb, the
equivalent is
mktime(0, 0, 0, 2, 30, 2005, true);
And the 30th day of Feb, 2005 is March 2nd.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация