Re: GLib gdate.c assertion error

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.


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