Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59319 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35890 invoked from network); 2 Apr 2012 09:44:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2012 09:44:23 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; 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:58448] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/6C-02210-4F4797F4 for ; Mon, 02 Apr 2012 05:44:22 -0400 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 51F6CDE141; Mon, 2 Apr 2012 10:44:17 +0100 (BST) Date: Mon, 2 Apr 2012 10:44:17 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= cc: Gustavo Lopes , "internals@lists.php.net" , Stas Malyshev In-Reply-To: <1333359444.10466.2.camel@guybrush> Message-ID: References: <1333359444.10466.2.camel@guybrush> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1915364971-1333359857=:23540" Subject: Re: [PHP-DEV] Addition of calendar to intl From: derick@php.net (Derick Rethans) --8323329-1915364971-1333359857=:23540 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 2 Apr 2012, Johannes Schl=C3=BCter wrote: > On Mon, 2012-04-02 at 10:35 +0200, Gustavo Lopes wrote: > >=20 > > I have exposed ICU's Calendar API to PHP via the intl extension. It=20 > > allows date calculations with Gregorian, Chinese, Coptic, Ethiopic,=20 > > Hebrew, Indian, Islamic (civil/religious), Japanese, Persian, Taiwan=20 > > and Thai Buddhist calendars. For a broader overview of its=20 > > functionality, see: >=20 > Basically it is good to have those calender stuff available. I wonder=20 > how this relates to our datelib. Can this somehow be integrated, at=20 > least for Gregorian calender times, so one can easily convert from one=20 > to the other etc.? Ideally we'd just have one API :-) Sadly, when I looked at it last time, the ICU stuff insistent on having=20 a timestamp only as input to their formatting functionality :-/ We'd=20 need to use a few things on the ext/date side to get ICU locale=20 formatting into the date/time stuff. cheers, Derick --=20 http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug --8323329-1915364971-1333359857=:23540--