Re: Seconds passed since today
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: Richard Stellingwerff <remenic gmail com>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: Seconds passed since today
- Date: Wed, 15 Jun 2005 14:07:40 +0200
On Wed, Jun 15, 2005 at 12:46:21PM +0200, Richard Stellingwerff wrote:
> Is there a way to determine the amount of seconds that has passed
> since today (instead of Epoch)?
Something like
time_t t;
struct tm *tm;
int sec;
time(&t);
tm = localtime(&t);
sec = tm->tm_sec + 60*(tm->tm_min + 60*tm->tm_hour);
?
It doesn't use any GLib time function, but I can't see how
they could simplify it.
Yeti
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]