Difference between revisions of "Creation Date"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''Creation date''' is an attribute of a file that reflects the date and time when the file was created. =Displaying= You can display the file's creation date by: *...")
 
 
Line 3: Line 3:
 
=Displaying=
 
=Displaying=
 
You can display the file's creation date by:
 
You can display the file's creation date by:
* running [[DIRECTORY]]/FULL on it
+
* running [[DIRECTORY (command)|DIRECTORY]]/FULL on it
 
* using the [[F$FILE_ATTRIBUTES()]] [[Lexical functions|lexical]]: F$FILE_ATTRIBUTES(filespec,"CDT") returns the creation date and time
 
* using the [[F$FILE_ATTRIBUTES()]] [[Lexical functions|lexical]]: F$FILE_ATTRIBUTES(filespec,"CDT") returns the creation date and time
  

Latest revision as of 08:47, 6 July 2023

Creation date is an attribute of a file that reflects the date and time when the file was created.

Displaying

You can display the file's creation date by:

File Selection

Many DCL commands such as DIRECTORY offer a similar set of qualifiers for file selection. Since /CREATED is the default qualifier, you may simply use /BEFORE and /SINCE to select files created before or since a certain absolute time, delta time, a combination of these two, BOOT, LOGIN, TODAY (default), TOMORROW, or YESTERDAY.

Modifying

You may modify the creation date of a file with SET FILE/ATTRIBUTES=CREDATE.