From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7923faa650450a2f,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-13 16:10:35 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!news.larc.nasa.gov!eos1.larc.nasa.gov!eckman From: eckman@eos1.larc.nasa.gov (Richard Eckman) Newsgroups: comp.unix.osf.osf1 Subject: localtime() function on DEC Alpha OSF/1 Date: 13 Aug 1993 19:40:09 GMT Organization: NASA Langley Research Center, Hampton, VA Message-ID: <24gqmpINNe5r@rave.larc.nasa.gov> NNTP-Posting-Host: eos1.larc.nasa.gov 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 #include #include 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