From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,e2c97bf55b74f34c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,d835184b60d59ca9 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-03 09:36:06 PST Xref: gmd.de comp.sys.dec:13773 comp.os.vms:41351 Path: gmd.de!xlink.net!zib-berlin.de!cs.tu-berlin.de!math.fu-berlin.de!MathWorks.Com!europa.eng.gtefsd.com!library.ucla.edu!csulb.edu!nic-nac.CSU.net!news.Cerritos.edu!news.Arizona.EDU!telcom.arizona.edu!leonard From: leonard@telcom.arizona.edu (Aaron Leonard) Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: VMS and UTC Followup-To: comp.os.vms Date: 3 Mar 1994 17:36:06 GMT Organization: University of Arizona Telecommunications Sender: leonard@RENA.TELCOM.ARIZONA.EDU (Aaron Leonard) Distribution: world Message-ID: <2l5766$5o2@auggie.CCIT.Arizona.EDU> References: Reply-To: Leonard@Arizona.EDU NNTP-Posting-Host: rena.telcom.arizona.edu X-Newsreader: mxrn 6.18-6 In article , daniels@biles.com (Brad Daniels) writes: |We're trying to implement a portable time class in C++ with some |specific requirements which make the existing classes we've seen |unsuitable. We want to represent time in UTC wherever possible. |On VMS, gmtime() doesn't work because "VMS doesn't support UTC". |While that statement was true in VMS V5.2 or so when I added the function |to the VAX C RTL, I wonder whether it's still true. I notice that |there's now some kind of a UTC time differential you can configure on |your system. What kinds of routines are available to make use of that |value? Do the routines handle daylight savings time properly? How |would I use it to handle old UTC values which might have corresponded |to times when daylight savings time was in effect locally? | |Any info would be appreciated. Hum, well one of the lingering deficiencies of VMS is that it doesn't understand UTC. (Although maybe that's fixed in V6.x?) Anyway, if you want to find the offset, gmtime() won't do it. There are many layered packages on VMS that have their own concept of timezone, so your code could fish around for one of them and do the conversion yourself. For example: Package Offset logical name ------------ ------------------- PMDF PMDF_TIMEZONE MULTINET MULTINET_TIMEZONE DECUS UUCP UUCP_TIMEZONE Jnet JAN_TIME_ZONE (no doubt many others) So your code could $TRNLNM trying to find if any of these logicals is defined, and figure out the offset from there. Aaron Aaron Leonard (AL104), University of Arizona Network Operations, Tucson AZ 85721 \ Don't lock yourself into open systems. /