Re: %V for strftime does not work under Windows NT

From: Date: Thu, 29 Mar 2001 17:37:01 +0000
Subject: Re: %V for strftime does not work under Windows NT
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6376@lists.php.net to get a copy of this message
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

« previous php.windows (#6376) next »