Re: Locale Month Name
| From: | Papp Gyozo | Date: | Fri, 07 Sep 2001 09:23:20 +0000 |
| Subject: | Re: Locale Month Name | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66425@lists.php.net to get a copy of this message | ||
LC_* are predefined constants, so:
setlocale(LC_ALL, "LT");
----- Original Message -----
From: Veniamin Goldin <veniamin.goldin@labbis.lt>
To: php <php-general@lists.php.net>
Sent: Thursday, August 30, 2001 11:37 AM
Subject: [PHP] Locale Month Name
> Hello !
>
> Please help me,
>
> How to get Month name according to server's locale setings ?
>
> I tryed to use:
>
> setlocale("LC_ALL", "LT");
> $month = strftime("%B", mktime(0,0,0,$m,1,$y));
>
> But I get message:
>
> Warning: Passing locale category name as string is deprecated. Use the
> LC_* -constants instead. in
>
> (My PHP runes on Windows Server)
>
>
> Thank You.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>