Newsgroups: php.internals,php.pecl.dev Path: news.php.net Xref: news.php.net php.internals:12192 php.pecl.dev:1182 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29534 invoked by uid 1010); 17 Aug 2004 09:35:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29457 invoked from network); 17 Aug 2004 09:35:02 -0000 Received: from unknown (HELO mailgate.mysql.com) (213.136.52.47) by pb1.pair.com with SMTP; 17 Aug 2004 09:35:02 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.mysql.com (8.12.10/8.12.10) with ESMTP id i7H9Z15r002300; Tue, 17 Aug 2004 11:35:01 +0200 Received: from mail.mysql.com ([10.222.1.99]) by localhost (mailgate.mysql.com [10.222.1.98]) (amavisd-new, port 10026) with LMTP id 22095-08; Tue, 17 Aug 2004 11:35:01 +0200 (CEST) Received: from [192.168.1.156] (mailsend.mysql.com [10.100.1.123]) (authenticated bits=0) by mail.mysql.com (8.12.10/8.12.10) with ESMTP id i7H9YlBk024038; Tue, 17 Aug 2004 11:34:48 +0200 Message-ID: <41232352.4030402@php.net> Date: Wed, 18 Aug 2004 11:37:22 +0200 Reply-To: hartmut@php-groupies.de User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a2) Gecko/20040714 X-Accept-Language: en, de MIME-Version: 1.0 To: Alexander Netkachev CC: internals@lists.php.net, pecl-dev@lists.php.net References: <20040813095635.99789.qmail@pb1.pair.com> In-Reply-To: <20040813095635.99789.qmail@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailgate.mysql.com Subject: Re: [PHP-DEV] Locale-aware date parsing From: hartmut@php.net (Hartmut Holzgraefe) Alexander Netkachev wrote: > Hi! > > I'm learning the date formatting and parsing functions in PHP and see > that there are no locale-aware date parsing function (strptime) that is > a pair for strftime. > Are there reasons to not implement it? Is a patch welcome? Short question: is it available on all our major platforms? > Some info about it is here: http://www.google.com/search?q=strptime > and http://www.opengroup.org/onlinepubs/007908799/xsh/strptime.html I couldn't find it on msdn.microsoft.com so i guess their C library doesn't have it. We've already had problems with Microsofs strftime() not supporting all placeholders so i'm against adding it by default. A PECL extension would be fine though. PS: We have talked about including the strftime() implementation of the BSD C library into the PHP source to get rid of the platform dependant strftime() inconsistencies. Maybe it is about time to re-think this, add strptime() to the idea? -- Hartmut Holzgraefe