TimeStamp has a field:
TimeZone : Integer; { in seconds }
Can GPC not sometimes have 16 bit Integer? Because if so, that field would be too small.
No, `Integer' is at least 32 bits.
Hmm, the TimeZone on my system comes back as:
TimeZone (in seconds): -1878692308
Just to be sure, a test program like this does so?
program Foo;
var t: TimeStamp;
begin GetTimeStamp (t); WriteLn (t.TimeValid, ' ', t.TimeZone) end.
What does the following C program give?
#include <stdio.h> #include <sys/time.h>
#if 0 /* Set if variable not defined */ extern long int timezone; #endif
int main () { time_t s = (time_t) time (0); localtime (&s); printf ("%li\n", (long int) timezone); return 0; }
Do you find any mentioning of `timezone' in the system headers?
Frank