date_format_locale

php.internals

Keryx Web

18 years ago
Hi all! Are there any information available about the specifics and progress of date_format_locale? Speaking as a non native English speaker this is a highly anticipated function. Three specific questions: 1. Is there an implementation in HEAD? 2. Is there any chance of a backport to PHP 5? 3. Will it accept formatting according to date() or strftime() syntax? Lars Gunther

Derick Rethans

18 years ago
On Wed, 19 Sep 2007, Keryx Web wrote:
> Are there any information available about the specifics and progress of > date_format_locale? > > Speaking as a non native English speaker this is a highly anticipated > function. > > Three specific questions: > 1. Is there an implementation in HEAD?
yes, see: http://talks.php.net/show/time-phpworks7/21
> 2. Is there any chance of a backport to PHP 5?
no
> 3. Will it accept formatting according to date() or strftime() syntax?
date(), but with some additions of course. How, I still need to work out. regards, Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Keryx Web

18 years ago
Derick Rethans skrev:
> On Wed, 19 Sep 2007, Keryx Web wrote:
>> 3. Will it accept formatting according to date() or strftime() syntax? > > date(), but with some additions of course. How, I still need to work > out. >
Is that set in stone? Most non-english application developers are probably more familiar with the strftime syntax, as we tend to use that function 90 % of the time. Personally I also find that syntax more appealing: echo date('\T\o\d\a\y \i\t \i\s l \a\n\d \t\h\e \c\l\o\c\k \i\s H:i'); echo strftime('Today it is %a and the clock is %H:%M'); Lars Gunther Who, btw, prefers date-syntax to not having this function at all...