Shell Commands/SetDate

From MorphOS Library

Revision as of 14:14, 3 March 2015 by JPV (talk | contribs) (Created page with "'''SetDate''' - Changes the last modification date of a file FILE/A, WEEKDAY, DATE, TIME, ALL/S <nowiki> FILE - File or directory name/pattern to modify...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< 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.