You are here: Re: [Windows + PHP5] Localizing date()? « PHP Programming Language « IT news, forums, messages
Re: [Windows + PHP5] Localizing date()?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация