Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ll-xn!mit-eddie!uw-beaver!cornell!batcomputer!mitch From: mitch@batcomputer.tn.cornell.edu (Mitch Collinsworth) Newsgroups: comp.os.vms Subject: Re: Changing from daylight time to standard time Message-ID: <2764@batcomputer.tn.cornell.edu> Date: Fri, 30-Oct-87 07:59:00 EST Article-I.D.: batcompu.2764 Posted: Fri Oct 30 07:59:00 1987 Date-Received: Wed, 4-Nov-87 07:18:09 EST References: <8710241907.AA29503@ucbvax.Berkeley.EDU> <2753@batcomputer.tn.cornell.edu> Reply-To: mitch@tcgould.tn.cornell.edu (Mitch Collinsworth) Organization: Program of Computer Graphics, Cornell University, Ithaca, NY Lines: 19 In article <2753@batcomputer.tn.cornell.edu> tedcrane@tcgould.tn.cornell.edu (Ted Crane) writes: >In article <8710241907.AA29503@ucbvax.Berkeley.EDU> R021JM9W@VB.CC.CMU.EDU (Jim Murawski) writes: -> I have whipped up a command procedure -> (that'll run in batch) to automatically change the system time -> and notify the console that the time has changed. This same -> procedure can also be used when changing from standard time -> to daylight time. To submit it, type: ->...followed by a long and complicated command procedure... > >It's a great idea to have that command procedure, but the operant portion >could be simplified somewhat along the lines: > > $ OLD_TIME = f$time() > $ set time="+01:00:00" > $ NEW_TIME = f$time() The above would also keep you from getting bit by the bug you would hit in the original version if the batch job execution was delayed to the point where it tried to jump forward or back across midnite.