* VMS and UTC
@ 1994-03-02 19:15 Brad Daniels
[not found] ` <CM3Fpq.Hu1@biles.com>
0 siblings, 1 reply; 3+ messages in thread
From: Brad Daniels @ 1994-03-02 19:15 UTC (permalink / raw)
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.
Thanks!
- Brad
------------------------------------------------------------------------
+ Brad Daniels | "Let others praise ancient times; +
+ Biles and Associates | I am glad I was born in these." +
+ These are my views, not B&A's | - Ovid (43 B.C. - 17 A.D.) +
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <CM3Fpq.Hu1@biles.com>]
* Re: VMS and UTC [not found] ` <CM3Fpq.Hu1@biles.com> @ 1994-03-03 17:36 ` Aaron Leonard 1994-03-10 9:07 ` Stuart Rance 1 sibling, 0 replies; 3+ messages in thread From: Aaron Leonard @ 1994-03-03 17:36 UTC (permalink / raw) 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. / ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: VMS and UTC [not found] ` <CM3Fpq.Hu1@biles.com> 1994-03-03 17:36 ` Aaron Leonard @ 1994-03-10 9:07 ` Stuart Rance 1 sibling, 0 replies; 3+ messages in thread From: Stuart Rance @ 1994-03-10 9:07 UTC (permalink / raw) 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. ..... I've never used this stuff myself but you might find the following excerpt from the OpenVMS VAX V6.0 New Features Manual useful. 5.11.6 Time Conversion Service OpenVMS VAX Version 6.0 system time is based on the local time effective in the time zone where the system is installed. For example, systems simultaneously installed on the East Coast and West Coast of the United States have system times that differ by three hours. If a distributed database applica- tion is running on the two systems, it is possible for an older entry on the East Coast system to supersede a newer en- try on the West Coast system. OpenVMS VAX Version 6.0 provides a time conversion service to overcome this problem. The time conversion service converts the local system time to Coordinated Universal Time (UTC), which has largely replaced Greenwich Mean Time (GMT) as a timekeeping standard. After you configure the time conversion service, UTC time is available to applications through the $GETUTC system service. The $GETUTC service enables applications to obtain timestamps based on a single, widely accepted time reference, regardless of where the applications are running. It also returns the current time in 128-bit UTC format. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-03-10 9:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-03-02 19:15 VMS and UTC Brad Daniels
[not found] ` <CM3Fpq.Hu1@biles.com>
1994-03-03 17:36 ` Aaron Leonard
1994-03-10 9:07 ` Stuart Rance
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox