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-Thread: fc7fa,e2c97bf55b74f34c X-Google-Attributes: gidfc7fa,public X-Google-ArrivalTime: 1994-03-10 01:07:29 PST Xref: gmd.de comp.sys.dec:14081 comp.os.vms:41956 Path: gmd.de!newsserver.jvnc.net!yale.edu!nigel.msen.com!well!pacbell.com!ames!decwrl!pa.dec.com!decuk.uvo.dec.com!vivian.enet.dec.com!rance From: rance@vivian.enet.dec.com (Stuart Rance) Newsgroups: comp.sys.dec,comp.os.vms,comp.sys.vms Subject: Re: VMS and UTC Date: 10 Mar 1994 09:07:29 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <2lmo0h$4a4@decuk.uvo.dec.com> References: Reply-To: rance@vivian.enet.dec.com (Stuart Rance) NNTP-Posting-Host: vivian.hhl.dec.com 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. ..... 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.