Usenet comp.sys.vms (1990-2004)
 help / color / mirror / Atom feed
From: rance@vivian.enet.dec.com (Stuart Rance)
Subject: Re: VMS and UTC
Date: 10 Mar 1994 09:07:29 GMT	[thread overview]
Message-ID: <2lmo0h$4a4@decuk.uvo.dec.com> (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.
.....

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.



      reply	other threads:[~1994-03-10  9:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CM1xHy.4Fq@biles.com>
1994-03-03 14:46 ` VMS and UTC Brad Daniels
1994-03-10  9:07   ` Stuart Rance [this message]
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