Re: Converting GTimeVal value to Gdate struct
- From: Havoc Pennington <hp redhat com>
- To: sam <sam028 free fr>
- Cc: gtk-list gnome org
- Subject: Re: Converting GTimeVal value to Gdate struct
- Date: 14 Apr 2001 11:14:39 -0400
sam <sam028 free fr> writes:
> I'm trying to convert my GTimeVal values (in GTimeval.tv_sec) in a GDate
> struct, or a string like YYYY/MM/DD-HH:MM:SS. I found the g_date_to_struct_tm
> function, wich convert a GDate variable to an struct tm variable, but I need
> the opposed function (tm to GDate).
> Any idea ?
I think you can just call g_date_set_time() with the seconds field of
the timeval. I could be wrong.
> ps: is there any GLib mailing list ? My question is maybe not appropriate
> here ...
Nope, this is the right list.
] [Thread Prev