%V for strftime does not work under Windows NT
| From: | Herbert Groot Jebbink | Date: | Tue, 27 Mar 2001 06:44:46 +0000 |
| Subject: | %V for strftime does not work under Windows NT | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6313@lists.php.net to get a copy of this message | ||
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