Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: leonard@telcom.arizona.edu (Aaron Leonard)
Subject: Re: VMS and UTC
Date: 3 Mar 1994 17:36:06 GMT	[thread overview]
Message-ID: <2l5766$5o2@auggie.CCIT.Arizona.EDU> (raw)
In-Reply-To: CM3Fpq.Hu1@biles.com


In article <CM3Fpq.Hu1@biles.com>, 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), <Leonard@Arizona.EDU>
University of Arizona Network Operations, Tucson AZ 85721
  \ Don't lock yourself into open systems. /




  parent reply	other threads:[~1994-03-03 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-02 19:15 VMS and UTC Brad Daniels
     [not found] ` <CM3Fpq.Hu1@biles.com>
1994-03-03 17:36   ` Aaron Leonard [this message]
1994-03-10  9:07   ` Stuart Rance
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