[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    Re: [PHP-WIN] %V for strftime does not work under Windows NT
From:       Herbert Groot Jebbink <herbert () groot ! jebbink ! nl>
Date:       2001-03-29 16:36:37
[Download RAW message or body]

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:hgj@xs4all.nl]
> Sent: terça-feira, 27 de Março de 2001 7:45
> To: php-windows@lists.php.net
> 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: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic