RE: [PHP-WIN] %V for strftime does not work under Windows NT
| From: | Fernando Madruga | Date: | Tue, 27 Mar 2001 09:56:31 +0000 |
| Subject: | RE: [PHP-WIN] %V for strftime does not work under Windows NT | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6318@lists.php.net to get a copy of this message | ||
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: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