Updates access and modification times of a file.
settime [ [ MMddhhmm[yy ] ] | [ -f ReferenceFile ] ] File ...
settime updates the argument files with the current access and modification times by default. The file is not created if it does not exist. The settime command silently continues its operation if the file does not exist.
Item | Description |
---|---|
-f ReferenceFile | Use the corresponding time of ReferenceFile instead of the current time. |
Item | Description |
---|---|
MMddhhmm[yy] | Time is specified for the settime command in the format MMddhhmm or MMddhhmmyy, where MM is a two-digit representation of the month, dd is a two-digit representation of the day of the month, hh is a two-digit representation of the hour, mm is a two-digit representation of the minute, and yy is a two-digit representation of the year. |
File | Specifies the name of a file or a space separated list of files. |
The return code from settime is the number of specified files for which the times could not be successfully modified.
settime infile
settime -f reffile infile
settime file1 file2 file3
settime 0409235902 infile
Item | Description |
---|---|
/usr/bin/settime | Contains the settime command. |