Re: [fw-general] Zend_Date first day of the week

2009-12-09 Thread takeshin
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) >>... >>Of course, I can allow

Re: [fw-general] R: Re: [fw-general] Zend_Date first day of the week

2009-12-08 Thread Thomas Weidner
t: Tuesday, December 08, 2009 1:45 AM Subject: [fw-general] R: Re: [fw-general] Zend_Date first day of the week 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

[fw-general] R: Re: [fw-general] Zend_Date first day of the week

2009-12-08 Thread acazzaniga
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. ;

Re: [fw-general] Zend_Date first day of the week

2009-12-08 Thread Thomas Weidner
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) ... Of course, I can allow user to set this manually, but I'm just looking for sane

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
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 in

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread Thomas Weidner
- Original Message - From: "takeshin" To: 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

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
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( ); > Zend_Date::getFirstWeekday(); // returns 0 for Americas, 1 for German

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread A.J. Brown
t 11:07 AM, Thomas Weidner wrote: > > - Original Message - From: "takeshin" > To: > Sent: Monday, December 07, 2009 3:25 PM > Subject: Re: [fw-general] Zend_Date first day of the week > > > >>> $date->getWeekday(0); >>> >>&g

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread Thomas Weidner
- Original Message - From: "takeshin" To: Sent: Monday, December 07, 2009 3:25 PM Subject: Re: [fw-general] Zend_Date first day of the week $date->getWeekday(0); Note that NOT EVERY COUNTRY defines 0 to be sunday... it depends on the country if 0 is a sunday o

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
W dniu 2009-12-07 10:33, Thomas Weidner [via Zend Framework Community] pisze: > $date->getWeekday(0); > > Note that NOT EVERY COUNTRY defines 0 to be sunday... it depends on the > country if 0 is a sunday or another day. > Thank you. That's all in the manual. But, simply put: How to determi

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread Thomas Weidner
Sent: Monday, December 07, 2009 9:51 AM Subject: Re: [fw-general] Zend_Date first day of the week Sorry, but this is not what's I'm asking for. The question is how to get first day of the week for the specified timezone, which returns *always* 0 (Sunday) for America and *always

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
Sorry, but this is not what's I'm asking for. The question is how to get first day of the week for the specified timezone, which returns *always* 0 (Sunday) for America and *always* 1 (Monday) for Poland. -- regards takeshin -- View this message in context: http://n4.nabble.com/Zend-Date-firs

Re: [fw-general] Zend_Date first day of the week

2009-12-07 Thread takeshin
vince. wrote: > > Try: > > date_default_timezone_set('Europe/Berlin'); > $date = new Zend_Date(); > > // Output of the current timestamp > print $date; > print ""; > print $date->get(Zend_Date::WEEKDAY); > Thanks. I Always forget to set correct timezo

Re: [fw-general] Zend_Date first day of the week

2009-12-06 Thread Vadim Gabriel
Hi, Try: date_default_timezone_set('Europe/Berlin'); $date = new Zend_Date(); // Output of the current timestamp print $date; print ""; print $date->get(Zend_Date::WEEKDAY); On Mon, Dec 7, 2009 at 9:15 AM, takeshin wrote: > > Is it possible to get first

[fw-general] Zend_Date first day of the week

2009-12-06 Thread takeshin
Is it possible to get first day of the week for the specified locale using Zend_Date? Zend_Date::WEEKDAY_FIRST ? -- regards takeshin -- View this message in context: http://n4.nabble.com/Zend-Date-first-day-of-the-week-tp954180p954180.html Sent from the Zend Framework mailing list archive at N