----- Original Message ----- From: "takeshin" <[email protected]>
To: <[email protected]>
Sent: Monday, December 07, 2009 10:31 PM
Subject: Re: [fw-general] Zend_Date first day of the week





A.J. Brown-3 wrote:

I think his question is:

"How do I determine (automagically) what the first day of the week is,
for a given LOCALE?"

I think he wants something like this:

Zend_Locale::setLocale( <LOCALE> );
Zend_Date::getFirstWeekday(); // returns 0 for Americas, 1 for Germany


Yes. Thank you for helping me to precise the question.
Sorry for not being eloquent enough.

Correct me if I'm wrong,
but I think it's currently not possible with Zend_Date.

It is possible.
But your expectations are wrong. ;-)

I looked into Zend/Locale/Data xmls,
but among lots of options there is no: <firstWorkDayOfTheWeek>
or anything similar to this.

Then take a deeper look into "week".

BTW, Is it cultural / religion related/ local law  related topic?
For instance, see this article: http://www.cjvlang.com/Dow/SunMon.html

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

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

Reply via email to