Fernando Madruga wrote:

> <?
>   $curloc = setlocale( "LC_ALL", "" );
>   echo "Current Locale = $curloc\n";
> ?>

Current Locale = English_United States.1252 

As fas as I can see it is the Windows implementation, it works
on Linux, IRIX, AIX.

hgj

> 
> I believe it must be some implementation issue: I've tried all that and
> even tried an example from PHP's manual (under gmstrftime), where I
> added the %V:
> 
> <?
>   setlocale ('LC_TIME', 'en_US');
>   echo strftime ("*%V* %b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
>   echo gmstrftime ("*%V* %b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
> ?>
> 
> On my Windows 98 SE machine I get nothing with %V !!
> 
> HTH,
>   Madruga
> 
> -----Original Message-----
> From: Herbert Groot Jebbink [mailto:[EMAIL PROTECTED]]
> Sent: terça-feira, 27 de Março de 2001 7:45
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] %V for strftime does not work under Windows NT
> 
> Hi,
> 
> Whatever I do, I can't get the weeknumer with %V in strftime, %W does
> work, I'm using PHP 4.0.4pl1 under NT.
> 
> It works under IRIX and Linux (also PHP 4.0.4pl1)
> 
> Greetings, Herbert
> 
> <?php
> 
>   setlocale("LC_ALL", "english");
>   $week = strftime("%V",mktime());
>   echo "-$week-";
> 
>   setlocale ("LC_TIME", "");
>   $week = strftime("%V",mktime());
>   echo "-$week-";
> 
>   setlocale ("LC_TIME", "C");
>   $week = strftime("%V",mktime());
>   echo "-$week-";
> 
>   setlocale('LC_TIME', 'SWEDISH');
>   $week = strftime("%V",mktime());
>   echo "-$week-";
> 
> ?>
> 
> Greetings, Herbert
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to