From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,c5e7d7e0aae08da,start X-Google-Attributes: gid10f8a1,public X-Google-Thread: f678f,c5e7d7e0aae08da,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-06-08 22:01:07 PST Xref: gmd.de comp.unix.osf.misc:270 vmsnet.alpha:532 Path: gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!swrinde!network.ucsd.edu!mvb.saic.com!unogate!news.service.uci.edu!nntpsrv From: iglesias@draco.acs.uci.edu (Mike Iglesias) Subject: Question about tzset(3) under DEC OSF/1 Nntp-Posting-Host: draco.acs.uci.edu Message-ID: <2C156B84.9572@news.service.uci.edu> Newsgroups: comp.unix.osf.misc,vmsnet.alpha Organization: University of California, Irvine Date: 9 Jun 93 04:48:04 GMT I have a question about how tzset(3) works on DEC OSF/1 v1.2(Rev 10) (the "official" release). When I use tzset, the "long timezone" variable is set to this: 0xffffffff00007080 (or -4294938496 in decimal). The 0x00007080 part of the number is the correct offset from GMT for my timezone, and the fact that it's negative is right since we are west of GMT. What's the correct way to extract the information from "timezone"? Is there a bug in the timezone code that is causing this strange number? I haven't been able to find much documentation on how to use the timezone variable in the man pages, so any help would be appreciated. I also looked at ftime, which is supplied as a BSD compatibility routine. This gives an even stranger number for the timezone offset, one that doesn't match what I get from Ultrix 4.2a. 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