Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68024 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72218 invoked from network); 1 Jul 2013 02:25:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2013 02:25:30 -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 108.166.43.99 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.99 smtp99.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.99] ([108.166.43.99:51556] helo=smtp99.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/21-63159-A98E0D15 for ; Sun, 30 Jun 2013 22:25:30 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp5.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id A15461B0153; Sun, 30 Jun 2013 22:25:27 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp5.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 509EA1B012F; Sun, 30 Jun 2013 22:25:27 -0400 (EDT) Message-ID: <51D0E896.10300@sugarcrm.com> Date: Sun, 30 Jun 2013 19:25:26 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Gustavo Lopes CC: PHP Internals References: <51D0AA4C.9020805@sugarcrm.com> <2e3d0947cdbe7832ec27295eadad9b5d@nebm.ist.utl.pt> In-Reply-To: <2e3d0947cdbe7832ec27295eadad9b5d@nebm.ist.utl.pt> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: IntlTimeZone::getOffset? From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > It can be a UTC timestamp (if $local is false), but note it's in > milliseconds since the epoch, not seconds. The documentation is here: It looks like it's the only place in PHP where we represent date this way. Given that this function has no docs at all, it's even more confusing. Can't we make it work in line with all other PHP functions that deal with dates? I understand ICU does it this way, but should we really make the API mimic ICU so closely? How would one use such function? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227