From: eckman@eos1.larc.nasa.gov (Richard Eckman)
Subject: localtime() function on DEC Alpha OSF/1
Date: 13 Aug 1993 19:40:09 GMT [thread overview]
Message-ID: <24gqmpINNe5r@rave.larc.nasa.gov> (raw)
Is there a problem with the localtime() function under OSF/1 on the DEC
Alpha systems? Using the program below, I can't seem to get anything
by garbage for the tm_gmtoff (offset in seconds from the Greenwich meridian)
value.
-----------------------------
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
main()
{
time_t t;
struct tm *tm;
#ifdef DO_TZSET
tzset();
#endif
(void) time(&t);
tm = localtime(&t);
printf("tm->tm_gmtoff = %ld\n", (long)tm->tm_gmtoff/60);
printf("tm->tm_zone = %s\n", tm->tm_zone);
exit(0);
}
------------------------------
Result:
tm->tm_gmtoff = 71582548
tm->tm_zone = EDT
Any suggestions would be appreciated.
Richard Eckman
NASA Langley
eckman@eos1.larc.nasa.gov
next reply other threads:[~1993-08-13 19:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-08-13 19:40 Richard Eckman [this message]
1993-08-14 2:11 ` localtime() function on DEC Alpha OSF/1 Mike Iglesias
1993-08-14 8:25 ` Burkhard Neidecker-Lutz
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox