nanogui: Contributed clock program to nano-X


Previous by date: 6 Jul 1999 17:34:10 -0000 Micro-Windows v0.82 released, Greg Haerr
Next by date: 6 Jul 1999 17:34:10 -0000 Re: Micro-Windows v0.82 released, Alistair Riddoch
Previous in thread: 6 Jul 1999 17:34:10 -0000 Re: Contributed clock program to nano-X, Alistair Riddoch
Next in thread:

Subject: RE: Contributed clock program to nano-X
From: Greg Haerr ####@####.####
Date: 6 Jul 1999 17:34:10 -0000
Message-Id: <01BBF777.0B2602F0.greg@censoft.com>

: I wasn't quite sure how this worked from reading the gettimeofday man page.
: There are some references made in the manpage to the kernel
: no longer using the tz structure, but when I included the second line
: of the code fragment below, it worked fine in the UK. (we are currently in
: daylight saving time) whereas previously it had been an hour slow.
: 
:         gettimeofday(&tv, &tz);
:         now = tv.tv_sec - (60 * tz.tz_minuteswest);
: 
: If the line is not in the version I sent you then I sen the wrong one by
: mistake. Please let me know whether this is the case.
: 

	I tried removing that line, and replacing the later call to gmtime()
with localtime().  The results were identical.  The minutes west is not
an indicator of daylight savings time, however.

Greg

Previous by date: 6 Jul 1999 17:34:10 -0000 Micro-Windows v0.82 released, Greg Haerr
Next by date: 6 Jul 1999 17:34:10 -0000 Re: Micro-Windows v0.82 released, Alistair Riddoch
Previous in thread: 6 Jul 1999 17:34:10 -0000 Re: Contributed clock program to nano-X, Alistair Riddoch
Next in thread:


Powered by ezmlm-browse 0.20.