Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!agate!ucbvax!WYOCDC1.BITNET!ZSYJKAA From: ZSYJKAA@WYOCDC1.BITNET (Jim Kirkpatrick 307 766-5303) Newsgroups: comp.os.vms Subject: Printing file age via DCL Message-ID: <880208133256.00001457.HBKK.83@WYOCDC1> Date: 8 Feb 88 20:32:56 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 8 I have a simple problem nobody here seems to be able to solve (we're fairly new to VMS) which is, how to display a file's age via DCL. I can get the revision date and time via F$FILE_ATTRIBUTES, but how do I subtract this (which is a character string) from the current date and time (another string) and end up with something meaningful (such as DELTA time format)? I can't see how to do it via F$CVTIME though I tried F$CVTIME(-RDT) and all it gave me was midnight of today. I can't believe this would be difficult in DCL but it sure isn't obvious to me!