Re: Bilingual strtotime()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 6, 2011 11:16 AM, "Per Jessen" <per@xxxxxxxxxxxx> wrote:
>
> Alexis wrote:
>
> > I was wondering if there was a way to use the strtotime() function
> > when the months are in one or the other of the above two languages?
>
> Ah, I misread this earlier - strtotime(), not strftime().  You're
> talking about transforming from text to a locale()-neutral format.  I
> don't think strtotime() is locale-sensitive - according to the manual:
>
> "The function [strtotime] expects to be given a string containing an
> English date format"
>
>
>

Strtotime can read a number of formats, but does (from experience) have
problems with some. It won't work with textual dates in anything but
English, far as I know.

Regards
Peter

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux