Re: Re: Logical reason for strtotime('east') and strtotime('west') returning valid results?
| From: | Kevin Kinsey | Date: | Wed, 07 Apr 2010 04:21:15 +0000 |
| Subject: | Re: Re: Logical reason for strtotime('east') and strtotime('west') returning valid results? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303865@lists.php.net to get a copy of this message | ||
Colin Guthrie wrote:
'Twas brillig, and Kevin Kinsey at 05/04/10 19:15 did gyre and gimble:Apparently these strings are being recognized as TZ stamps, but the underlying logic is "not fully implemented": see http://www.gnu.org/s/libc/manual/html_node/Low_002dLevel-Time-String-Parsing.html Try it with some TZ stamps ... I'm pretty sure that in the previous example it was taking "East" to be "EST", as I observed (rather by accident) earlier. Kevin KinseyNonetheless, I'm suspecting the programmers had something like this in mind.Yeah I guess that's why it interprets these terms. Good thinking :)Isn't strtotime() based on some GNU utility?Yeah, that's why I said "the relevant authorities". I couldn't remember off-hand where it came from so figured I'd not blame "PHP" just yet :p