You are here: Re: generating a list of dates « PHP Programming Language « IT news, forums, messages
Re: generating a list of dates

Posted by Curtis on 01/30/07 06:39

Rik wrote:
> Curtis <dyer85@gmail.com> wrote:
>
>> On Jan 29, 6:46 pm, "Curtis" <dye...@gmail.com> wrote:
>>> function daysUntilNow($month, $day, $year, $format = 'Y-m-d') {
>>> $d = array();
>>> $ts = 0;
>>>
>>> while ( ($ts = mktime(0,0,0,$month,$day,$year)) < time() ){
>>> $ts = mktime(0,0,0,$month,$day,$year);
>>> $d[] = date($format,$ts);
>>> $day++; // increment days
>>> }
>>> return $d;
>>>
>>> }
>>
>> Grr, Google Groups borked my code. Pretend there's a closing brace for
>> the function.
>
> There is in real newsreaders :P
>
> --Rik Wasmus

Yeah, I finally found out my ISP's news server. I'm using Thunderbird
as my news client, for the moment, but I still want to check out Opera.

I hope Thunderbird is breaking the lines after the right amount of
characters.

--
Curtis, free of Google Groups

 

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

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