From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,ec2097fff44df8b9 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,ec2097fff44df8b9 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,ec2097fff44df8b9 X-Google-Attributes: gid1014db,public From: hoffman@xdelta.enet.dec.com (Stephen Hoffman) Subject: Re: getting correct local time in VAX C program Date: 1996/04/02 Message-ID: <4jrtho$ror@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 145467841 distribution: world references: <4jec36$ff3@lastactionhero.rs.itd.umich.edu> organization: Digital Equipment Corp reply-to: hoffman@xdelta.enet.dec.com (Stephen Hoffman) newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c In article <4jec36$ff3@lastactionhero.rs.itd.umich.edu>, raffel@umich.edu (David Raffel) writes: :Are there any routines available that will return the correct :local time, or any suggestions for how I can get the correct :time? VAX C V3.1 is a veritable antique by present standards -- V3.2 is five or six years old. The current C compiler for OpenVMS VAX is DEC C, and V5.2 is the current release. (Both VAX C V3.2 and DEC C can coexist on the same OpenVMS VAX system, and both are enabled with the "C" license. DEC C requires a run-time kit -- in the distribution directory with the DEC C compiler -- for OpenVMS V5.5 through V6.0 inclusive. The run-time kit is not necessary on and should not be installed on V6.1 or later.) DEC C V5.2 and OpenVMS V7.0 do include timezone support -- the VAX C compiler does not. (OpenVMS V6.0 and later include the RTL support for UTC and similar, and much of the underpinnings necessary for solving this problem are present starting in that release -- gmtime and friends first return non-zero values on OpenVMS V7.0.) Prior to the V5.2/V7.0 release, you will need to implement the TDF calculations yourself. This task is easiest on V6.0 and later, as the services are available. ------------------------- pure personal opinion --------------------------- Stephen Hoffman OpenVMS Engineering hoffman@xdelta.enet.dec.com ---------------------------------------------------------------------------