Re: Converting GTimeVal value to Gdate struct

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.


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