You are here: Re: [PHP] TimeStamp BEFORE 1970 « PHP « IT news, forums, messages
Re: [PHP] TimeStamp BEFORE 1970

Posted by Edward Vermillion on 07/08/05 07:16

On Jul 7, 2005, at 10:17 PM, Bruno B B Magalhães wrote:

> Hi Edward,
>
> thanks for replying!
>
>

[snip]
> Why 1976, because it's a leap year and is between valid range for
> windows systems.
>
> Let me try to explain the rest.
>
> First I get the input year... which by the way is working fine here...
> preg_match('([0-2][0-9][0-9][0-9])', $input, $year);
>
> Was it clear, or I am dreaming awake? hehehehhe
>

Actually I think I'm the one that is dreaming awake. ;)

Operation + vicodin = fuzzy head.

The math is amazing if it really works for you, and thanks for
explaining what your doing.

But my comments on the regex still stand. Just to be sure you
understand that the match is
working in this case because you are matching the whole string, which
is what is in $year[0].

It would return the same results if you used the "normal" string
delimiter, not sure that's the
right term for it, of a forward slash instead of the parenthesis. ie

preg_match('/[0-2][0-9][0-9][0-9]/', $input, $year);
^ ^

But in the end it's what works that counts, eh? ;)

Edward Vermillion
evermillion@doggydoo.net

 

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

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