[Gambas-user] Week function and localization

Jussi Lahtinen jussi.lahtinen at ...626...
Wed Dec 22 18:21:01 CET 2010


How did I missed them...

Jussi


2010/12/22 Benoît Minisini <gambas at ...1...>

> > ? Week(Date(2005, 7, 24))
> > 30
> > Calendar says 29, however this doesn't seem to be this simple...
> >
> > See end of this page, section 'weeks', week number options.
> >
> http://www.timeanddate.com/calendar/custommenu.html?year=2005&country=9&wno
> > =5&holm=1&df=1
> >
> > Seems that there are several ways how week numbers are counted in
> different
> > countries!
> > So, with same date, 30 is wrong in Finland but correct in Japan....
> >
> > Jussi
>
> This is the reason why Week() has two optional arguments. Apparently there
> is
> no information in the localization system settings that allows to know how
> to
> compute the week number from a date. So this is up to the programmer to
> decide
> himself by using the two optional arguments of Week().
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with Google
> Apps:
> an online email calendar, and document program that's accessible from your
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list