Re: GLib gdate.c assertion error
- From: Havoc Pennington <hp redhat com>
- To: "N. Thomas" <nthomas cise ufl edu>
- Cc: gtk-list gnome org
- Subject: Re: GLib gdate.c assertion error
- Date: Sun, 6 Jul 2003 22:36:26 -0400
On Sun, Jul 06, 2003 at 05:06:18PM -0400, N. Thomas wrote:
> The main reason I am calling g_date_valid() is to check the validity of
> the inputted date, it doesn't seem to make sense that g_date_new_dmy()
> should barf when I feed it a bad date.
To validate a dmy triplet use g_date_valid_dmy() instead. There's a
family of valid_* functions.
g_date_valid() is basically just used with g_date_parse it looks
like. Kind of bizarre, granted.
] [Thread Prev