Re: Addition of calendar to intl

From: Date: Mon, 02 Apr 2012 09:44:17 +0000
Subject: Re: Addition of calendar to intl
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-59319@lists.php.net to get a copy of this message
On Mon, 2 Apr 2012, Johannes Schlüter wrote: > On Mon, 2012-04-02 at 10:35 +0200, Gustavo Lopes wrote: > > > > I have exposed ICU's Calendar API to PHP via the intl extension. It > > allows date calculations with Gregorian, Chinese, Coptic, Ethiopic, > > Hebrew, Indian, Islamic (civil/religious), Japanese, Persian, Taiwan > > and Thai Buddhist calendars. For a broader overview of its > > functionality, see: > > Basically it is good to have those calender stuff available. I wonder > how this relates to our datelib. Can this somehow be integrated, at > least for Gregorian calender times, so one can easily convert from one > 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 a timestamp only as input to their formatting functionality :-/ We'd need to use a few things on the ext/date side to get ICU locale formatting into the date/time stuff. cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug

« previous php.internals (#59319) next »