Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21316 invoked from network); 20 Dec 2011 11:29:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2011 11:29:48 -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:50150] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/B5-16374-BA170FE4 for ; Tue, 20 Dec 2011 06:29:47 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 4D406DE13E; Tue, 20 Dec 2011 11:29:44 +0000 (GMT) Date: Tue, 20 Dec 2011 11:29:44 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: =?UTF-8?Q?=C3=81ngel_Gonz=C3=A1lez?= cc: Will Fitch , Stas Malyshev , Oleg Oshmyan , PHP Developers Mailing List In-Reply-To: <4EE922F4.40602@gmail.com> Message-ID: References: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> <1C397FE3-76E2-473B-B47F-194DAF3ACB39@inbox.lv> <4EE91556.3040909@sugarcrm.com> <4EE922F4.40602@gmail.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1056705628-1324380584=:27751" Subject: Re: [PHP-DEV] Local time zone From: derick@php.net (Derick Rethans) --8323329-1056705628-1324380584=:27751 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 14 Dec 2011, =C3=81ngel Gonz=C3=A1lez wrote: > On 14/12/11 22:53, Will Fitch wrote: > > > I believe he's referring to sys/time.h, but this introduces=20 > > portability issues. If it were just unix, that would be one thing. =20 > > But maintaining this and a Windows alternative, and I have no idea=20 > > what that is, is not worth it IMO. > > is present in *nix, Windows, and probably everywhere php=20 > runs. As it provides mktime/gmtime/localtime, it should be possible to=20 > portably deal with timezones. At least when it's not multithreaded.=20 > And if the host doesn't contain timezone data (embedded systems,=20 > perhaps), that "System" zone could simply default to UTC. PHP's date time support does not use time.h. With one of the reasons is=20 that time_t is 32bit on most Unices, and we need to support things=20 outside that range too. Derick --=20 http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug --8323329-1056705628-1324380584=:27751--