- Feb
- 7
- 0
You should create a new command to update one or more of a file's timestamps. The default behavior (without any command qualifiers) should be to make sure that the file's Create Timestamp is no later than the file's Update Timestamp. I have numerous files where for some unknown reason the Create Timestamp is much later than the Modify Timestamp, sometimes many years later. Obviously, such a situation is absurd. I should be able to easily change the Create Timestamp so that it is the same as or earlier than the Modify Timestamp.
I don't have a specific name for this command that I consider to be particularly good. However, either UPDATE or TIMESTAMP come to mind. I am open to good alternatives. One alternative is to enhance the TOUCH command to allow the user to set the Modification Timestamp to be less than or equal to the Creation Timestamp for all files in a single directory or an entire directory tree.
What I want is a simple way to specify the following without having to write my own program:
Create_Timestamp = Modification_Timestamp +/- Delta_Time
where Delta_Time is specified as a combination of date and time that is either added to or subtracted from the Modification_Timestamp.
If the sign is +, then the Creation_Timestamp is later than the Modification_Timestamp, i.e., Delta_Time is added to Modification_Timestamp.
If the sign is -, then the Creation_Timestamp is earlier than the Modification_Timestamp, i.e., Delta_Time is subtracted from Modification_Timestamp.
I don't have a specific name for this command that I consider to be particularly good. However, either UPDATE or TIMESTAMP come to mind. I am open to good alternatives. One alternative is to enhance the TOUCH command to allow the user to set the Modification Timestamp to be less than or equal to the Creation Timestamp for all files in a single directory or an entire directory tree.
What I want is a simple way to specify the following without having to write my own program:
Create_Timestamp = Modification_Timestamp +/- Delta_Time
where Delta_Time is specified as a combination of date and time that is either added to or subtracted from the Modification_Timestamp.
If the sign is +, then the Creation_Timestamp is later than the Modification_Timestamp, i.e., Delta_Time is added to Modification_Timestamp.
If the sign is -, then the Creation_Timestamp is earlier than the Modification_Timestamp, i.e., Delta_Time is subtracted from Modification_Timestamp.
Last edited: