: 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