Try this to see what is your current locale:
<?
  $curloc = setlocale( "LC_ALL", "" );
  echo "Current Locale = $curloc\n";
?>

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]

Reply via email to