From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7923faa650450a2f X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-13 19:16:51 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!dog.ee.lbl.gov!network.ucsd.edu!news.service.uci.edu!draco.acs.uci.edu!iglesias From: iglesias@draco.acs.uci.edu (Mike Iglesias) Subject: Re: localtime() function on DEC Alpha OSF/1 Nntp-Posting-Host: draco.acs.uci.edu Message-ID: <2C6C49B6.28355@news.service.uci.edu> Newsgroups: comp.unix.osf.osf1 Organization: University of California, Irvine Date: 14 Aug 93 02:11:02 GMT References: <24gqmpINNe5r@rave.larc.nasa.gov> In article <24gqmpINNe5r@rave.larc.nasa.gov>, Richard Eckman wrote: > 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. Yes, there's a bug. Change this line in your program: printf("tm->tm_gmtoff = %ld\n", (long)tm->tm_gmtoff/60); to this: printf("tm->tm_gmtoff = %ld\n", (int)tm->tm_gmtoff/60); I found this a while back; I think DEC said it would be fixed in OSF v1.3, but I'm not sure. The problem is that the upper 32 bits of the long are not setup properly so you get garbage. -- Mike Iglesias Internet: iglesias@draco.acs.uci.edu University of California, Irvine BITNET: iglesias@uci Office of Academic Computing uucp: ...!ucbvax!ucivax!iglesias Distributed Computing Support phone: (714) 856-6926