Seconds passed since today
- From: Richard Stellingwerff <remenic gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: Seconds passed since today
- Date: Wed, 15 Jun 2005 12:46:21 +0200
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]