I think 0 is sunday.. 1 is monday .. 
------Messaggio originale------
Da: takeshin
A:fw-general@lists.zend.com
Oggetto: Re: [fw-general] Zend_Date first day of the week
Inviato: 8 Dic 2009 00:27




Thomas Weidner wrote:
> 
> 
> It is possible.
> But your expectations are wrong. ;-)
> 
> 

No comprendo, Senior ;)


Thomas Weidner wrote:
> 
> It's a regional topic.
> For more informations look into unicodes database: http://unicode.org/cldr
> 
> 

It a little bit off topic already :)

I'm interested in function like:

function getFirstDayOfTheWeek($country)
{

switch ($coutry) {
case 'pl':
case 'de':
case 'cz':
case other... (where to find the other?)
   return 1;
case some arabic…
case some jewish…
   return 6;
case some exotic ones:
   return (2 ÷ 5)
…
default:
 return 0;
}

}

Of course, I can allow user to set this manually,
but I'm just looking for sane defaults.

-- 
regards
takeshin

-- 
View this message in context: 
http://n4.nabble.com/Zend-Date-first-day-of-the-week-tp954180p954854.html
Sent from the Zend Framework mailing list archive at Nabble.com.


Sent from my BlackBerry® wireless device

Reply via email to