Re: Re: date() funtion language
| From: | André Cerqueira | Date: | Fri, 13 Feb 2004 17:52:55 +0000 |
| Subject: | Re: Re: date() funtion language | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177615@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hmz...
i just tryed that... didnt work
tryed other locale strings, didnt work...
do i need something else to make it work?
running php4.3.4rc3 on windows
Don Read wrote:
On 12-Feb-2004 André Cerqueira wrote:Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFALQ73axdA/5C8vH8RAt+IAKCuAH1hlInsMdcwkNvFmJy119YC/ACg0uws uvW3FtqgRSXl5VkOcPVgTls= =3cMI -----END PGP SIGNATURE----------BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 i had problems with locale i think its safer to make a dayname and monthname array, and use getdate(), than build the string yourself<snip>//the follow should, but doesnt seem to work //setlocale(LC_ALL, 'pt_BR'); //echo date('l, j de F de Y'); ?>date() doesn't format according to locale but strftime() does: setlocale(LC_ALL, 'pt_BR.ISO8859-1'); echo strftime('%A, %B %e %Y'); // output 'Quinta Feira, Fevereiro 12 2004' -----BEGIN PGP SIGNATURE-----