Re: Problem with date



"Branly Abendano" <babendan tecnopro net> writes: 
>  g_date_days_in_month(month,year)      // Return 30 and must return 31
>                                                             // because
> december has 31 days
> 

foo.c:

 #include <glib.h>

 int main(void)
 {
     g_print ("days in december: %d\n", g_date_days_in_month (12, 2001));
     return 0;
 }

$ cc -Wall -g `pkg-config --cflags --libs glib-2.0` foo.c -o foo
$ ./foo
days in december: 31

This is with the unstable branch, but the code hasn't changed AFAIK.

Can you provide a test case?

Havoc




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