Hello Michal,
Friday, March 19, 2004, 5:09:12 PM, you wrote:
>>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.
MM> No need to be rude - you asked for a way to do it without knowing the
MM> specif
>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.
No need
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> $su
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", $sun
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
yes but I want it in various languages.
"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello Diana,
>
> Thursday, March 18, 2004, 11:38:55 AM, you wrote:
>
> DC> does anyone know of any built in php functions that can convert a day
of
> DC> week that is in numeric fo
Hello Diana,
Thursday, March 18, 2004, 11:38:55 AM, you wrote:
DC> does anyone know of any built in php functions that can convert a day of
DC> week that is in numeric format , e.g. 1 into a Monday (without knowing which
DC> exact date we are talking about)
I can't think of a built-in function t
does anyone know of any built in php functions that can convert a day of
week that is in numeric format , e.g. 1 into a Monday (without knowing which
exact date we are talking about)
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 ext 214
8 matches
Mail list logo