Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56960 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18704 invoked from network); 20 Dec 2011 11:26:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2011 11:26:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:50135] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/05-16374-8D070FE4 for ; Tue, 20 Dec 2011 06:26:16 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 867B5DE13E; Tue, 20 Dec 2011 11:26:13 +0000 (GMT) Date: Tue, 20 Dec 2011 11:26:13 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Oleg Oshmyan cc: PHP Developers Mailing List In-Reply-To: Message-ID: References: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> <1C397FE3-76E2-473B-B47F-194DAF3ACB39@inbox.lv> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Local time zone From: derick@php.net (Derick Rethans) On Wed, 14 Dec 2011, Oleg Oshmyan wrote: > > Using the information from /etc/localtime is *not* enough as > > you can't get the timezone identifier out of it. > > The time zone identifier would be System. No need to extract one from > /etc/localtime. "System" is not a defined Timezone Identifier. So you can never match this against anything else PHP does. /etc/localtime does not provide all the information that PHP's date/time support needs. Hint: It doesn't use OS syscalls or library calls at all. > * There will be a new time zone called System. When this time zone is > active, instead of PHP's internal time zone database and > timezone-aware code, system-provided local time APIs are used. In > previous emails, I said things like 'system-provided local time > description and/or APIs' but they seem only to increase confusion, so > let me drop that part. This System time zone will obviously have some > system-dependent behaviour, share the system's idiosyncrasies etc. but > this is *the whole point*: if the programmer wants them, they should > be able to get them. That'd mean duplicating every function that deals with timezone. As I said: not going to happen. Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug