Operating System - OpenVMS
1828208 Members
2394 Online
109975 Solutions
New Discussion

getting older time in openVMS

 
SOLVED
Go to solution
SAMI AHMAD
Regular Advisor

getting older time in openVMS

whats the easiest way of getting current time - 10 mins (
e.g if i want to do a dir/since=<10 mins ago time>
3 REPLIES 3
Jim_McKinney
Honored Contributor
Solution

Re: getting older time in openVMS

$ dire/sinc="''f$cvtime("-0 0:10:0","absolute")'"
Jan van den Ende
Honored Contributor

Re: getting older time in openVMS

Sami,

simply

$ DIR /SIN="-0:10"

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Hoff
Honored Contributor

Re: getting older time in openVMS

The OpenVMS manuals are available at http://www.hp.com/go/openvms/doc

Start with the OpenVMS user's guide; that contains a reasonable explanation of the DCL syntax, including absolute, delta and combination time specifications.

The OpenVMS help files have directly relevant information. In current OpenVMS versions, HELP DATE will get you the core DCL constructs and examples. That's where the above text came from.

The Google web search engine is available at http://www.google.com, and can be used to access a wealth of information on DCL and DCL time and date syntax. The available Google site keyword (eg: site:h71000.www7.hp.com) can be used to narrow the search to specific hosts, too, targeting your query.

And as for the question:

--
$ dir/since="-:10:00"
%DIRECT-W-NOFILES, no files found
$ create x.x
^Z
$ dir/since="-:10:00"

Directory ddcu:[dir]

X.X;1

Total of 1 file.
$
$ HELP DATE

DATE_TIME

Delta

Delta time is an offset from the current time to a time in the
future. Delta time has the following format:

"+[dddd-][hh:mm:ss.cc]"

You can truncate delta time after the hour field. You can also
omit any of the fields after the hour field format as long as you
specify the punctuation marks.
---