| 
	
 | 
 Posted by Gilles Ganault on 12/28/07 04:53 
On Fri, 28 Dec 2007 04:10:57 +0100, Gilles Ganault <nospam@nospam.com> 
wrote: 
>2. What would be the least complicated way to change this call to 
>date()? 
 
For those interested, it seems like date() always displays date/time 
using the US locale, while strftime() uses the selected locale. 
 
For instance, the following does display the date according to the 
French locale: 
 
=========== 
setlocale(LC_ALL, 'French'); 
 
//27 December 2007 
echo date('d F Y', '1198790064') . "<p>"; 
 
//27 décembre 2007 
echo strftime('%d %B %Y', '1198790064'); 
=========== 
 
HTH,
 
  
Navigation:
[Reply to this message] 
 |