Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!ittatc!dcdwest!sdcsvax!ucbvax!BBN-SPCA.ARPA!gwalker From: gwalker@BBN-SPCA.ARPA (Gail Rubin Walker) Newsgroups: mod.computers.vax Subject: date/time arithmetic in vms Message-ID: <8607011039.AA25666@ucbvax.Berkeley.EDU> Date: Tue, 1-Jul-86 00:18:47 EDT Article-I.D.: ucbvax.8607011039.AA25666 Posted: Tue Jul 1 00:18:47 1986 Date-Received: Tue, 1-Jul-86 19:39:14 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 14 Approved: info-vax@sri-kl.arpa If I want to compute a date (VAX quadword date form) that is 1 month from today - what is the best way? It seems to me that there is a system service 'missing'. I can get the current date/time in a 7-word array with sys$numtim. One of the words is month number. I can add 1 to that (and do the appropriate things if I've gone off the end of the year) but then what? There doesn't appear to be a service that converts from the 7 word array back to the vax quadword format. Or even from the 7 word array to an ascii string. The other system services that deal with quadword times convert from quadword to ascii string and back - that doesn't help. Do I really have to then myself turn the 7 word array into an ascii string to use sys$bintim to get back to the quadword form? Or have I just overlooked a system routine somewhere? -- Gail Walker gwalker@bbn-spca