Re: TimeStamp BEFORE 1970

From: Date: Fri, 08 Jul 2005 04:16:52 +0000
Subject: Re: TimeStamp BEFORE 1970
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-218332@lists.php.net to get a copy of this message
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

« previous php.general (#218332) next »