Seconds passed since today



Hi,

Is there a way to determine the amount of seconds that has passed
since today (instead of Epoch)?

What I can do now is:
 a) get the amount of seconds passed since the Epoch. (time(NULL))
 b) convert seconds passed since the Epoch to a GDate.
(g_date_set_time(date, time(NULL)));

What I can not do is:
 c) Convert the GDate to a GTimeVal (set at the beginning of the day).

If I could do the things above, I could:
 - subtract c from a, and be done with it!

Is there a way to do C or is there an easier way to do this? 

Kind regards,
Richard Stellingwerff.



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