Re: Re[2]: [PHP] days of week

From: Date: Thu, 18 Mar 2004 12:34:32 +0000
Subject: Re: Re[2]: [PHP] days of week
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-180808@lists.php.net to get a copy of this message
I didnt want to hard code the names , so we made this up: function getDayName($day, $lang=''){ if ($locale = Language::getLocale($lang)) { setlocale(LC_TIME, $locale); } $sunday = strtotime('1 January 1995'); // That day was a Sunday return strftime("%A", $sunday+(3600*24*$day)); } "Richard Davey" <rich@launchcode.co.uk> wrote in message news:1008242968.20040318121052@launchcode.co.uk... > Hello Diana, > > Thursday, March 18, 2004, 12:00:55 PM, you wrote: > > DC> yes but I want it in various languages. > > Not in your *original* post you didn't (the one that I replied to). > Besides, it wouldn't be that hard to modify to make it happen. > > -- > Best regards, > Richard Davey > http://www.phpcommunity.org/wiki/296.html

« previous php.general (#180808) next »