Hello Diana,

Thursday, March 18, 2004, 12:34:32 PM, you wrote:

DC> I didnt want to hard code the names , so we made this up:

DC> function getDayName($day, $lang=''){
DC>         if ($locale = Language::getLocale($lang)) {
DC>             setlocale(LC_TIME, $locale);
DC>         }
DC>         $sunday = strtotime('1 January 1995'); // That day was a Sunday
DC>   return strftime("%A", $sunday+(3600*24*$day));
DC>     }

So despite asking for a way to do it without using dates in functions,
that's exactly what you're doing?

Heh, gotta love this list sometimes.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to