Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56931 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64572 invoked from network); 14 Dec 2011 23:41:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2011 23:41:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=chortos@inbox.lv; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chortos@inbox.lv; sender-id=pass Received-SPF: pass (pb1.pair.com: domain inbox.lv designates 89.111.3.82 as permitted sender) X-PHP-List-Original-Sender: chortos@inbox.lv X-Host-Fingerprint: 89.111.3.82 shark2.inbox.lv Received: from [89.111.3.82] ([89.111.3.82:48675] helo=shark2.inbox.lv) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/50-61765-14439EE4 for ; Wed, 14 Dec 2011 18:41:54 -0500 Received: from mail.inbox.lv (pop [10.0.1.110]) by shark2-plain.inbox.lv (Postfix) with ESMTP id 8CC689DB1; Thu, 15 Dec 2011 01:41:50 +0200 (EET) Received: from [192.168.1.139] (unknown [77.38.233.95]) (Authenticated sender: chortos@inbox.lv) by mail.inbox.lv (Postfix) with ESMTPSA id 5462D622E5; Thu, 15 Dec 2011 01:41:50 +0200 (EET) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Thu, 15 Dec 2011 01:41:49 +0200 Cc: Stas Malyshev , Derick Rethans , PHP Developers Mailing List Content-Transfer-Encoding: 7bit Message-ID: <85F1CEA6-F5B8-4610-B851-CDDB50E0EB4D@inbox.lv> References: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> <1C397FE3-76E2-473B-B47F-194DAF3ACB39@inbox.lv> <4EE91556.3040909@sugarcrm.com> To: Oleg Oshmyan X-Mailer: Apple Mail (2.1084) X-Virus-Scanned: OK Subject: Re: [PHP-DEV] Local time zone From: chortos@inbox.lv (Oleg Oshmyan) > Even so, the Windows implementation is of course broken (it always uses > hard-coded DST rules and even seems to require TZ to be set) Actually it might even be fine. The relevant MSDN Library pages are worded confusingly; I will perform some tests and report back. If localtime and mktime indeed work well on Windows, I would in fact prefer them to be used, not just because that will mean less/no platform- dependent code but also because they honour the TZ environment variable like POSIX-compliant implementations do. It is worth mentioning that VC9 has 64-bit and 32-bit versions of time_t, localtime and mktime while VC6 only has a 32-bit version. Unfortunately, none of these versions work with times before 1970. -- Oleg