Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55966 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18011 invoked from network); 26 Oct 2011 17:45:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2011 17:45:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.123 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.123 smtp123.iad.emailsrvr.com Linux 2.6 Received: from [207.97.245.123] ([207.97.245.123:35580] helo=smtp123.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/51-06370-D1748AE4 for ; Wed, 26 Oct 2011 13:45:02 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp42.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 42A8E148145; Wed, 26 Oct 2011 13:44:58 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp42.relay.iad1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 9325F148737; Wed, 26 Oct 2011 13:44:57 -0400 (EDT) Message-ID: <4EA84718.8060900@sugarcrm.com> Date: Wed, 26 Oct 2011 10:44:56 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Derick Rethans CC: Daniel Convissor , PHP Internals List References: <20111025150637.GA8964@panix.com> <4EA83F70.30601@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] DateTime and Daylight Saving Time Transitions From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > If you don't know it, don't pass it in! Then PHP will guess, just as it > does now and always has done. It's just an extra help in case you need > to be specific about whether you want the ST or DST variant of "02:30". > > You can just use EDT/EST anyway, and that would work too (but of course > not set a tz=3 timezone on the object). That's what I don't understand - so in the real code, what would be the use case where I'd want to use ST/DST? I.e., if I know the exact time, I could just use the timestamp or GMT time which doesn't have transitions. If I know only the formatted string, how I know if I should add ST/DST or not? I'm a bit unclear on that - how I can make a code that would be able to use this syntax. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227