Shell Commands/SetDate

From MorphOS Library

< Shell Commands

SetDate - Changes the last modification date of a file

FILE/A, WEEKDAY, DATE, TIME, ALL/S

FILE    - File or directory name/pattern to modify                             
WEEKDAY - New weekday to set
DATE    - New date to set
TIME    - New time to set
ALL     - If specified, changes the date of all files and subdirectories
          matching the entered pattern

Example:

  MorphOS:> SetDate my_file.txt Thursday 20-Jan-05 15:09:10

NOTE: You can use output from the Date command as input to SetDate.