Re: Problem with date
- From: Havoc Pennington <hp redhat com>
- To: "Branly Abendano" <babendan tecnopro net>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: Problem with date
- Date: 19 May 2001 10:57:49 -0400
"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]