Re: glib1.3.5 : g_date_xxxx_week_of_year



On 28 Jun 2001 16:37:49 +0200, GHF wrote:
> Havoc Pennington a écrit :
> > Though at that point, maybe g_date_get_week_of_year() taking a day of
> > the week argument would be appropriate.
> > 
> > Havoc
> 
> I think you are wrong ...
> 
> Thursday doesn't define the beginning of the weeks but the first week of
> the year (which is different if the week starts on Sunday or on Monday).
> 
> The glib1.3.5 routines are not in accordance with the weeks of the
> gtkcalendar widget ...

For better or for worse, the GDate routines are meant to behave in a
manner that matches the week-number codes in strftime.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]