Seconds passed since today

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

 



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.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux