Red Hat Linux User wrote:
> 
> I guess I'm dense. I can set a date stamp with the following syntax:
> 
> touch -d 0326 filename
> 
> which gets me 26 March 2001. This is OK if I want only to set day and
> month. If I want a specific hour or year, no matter what numerical value
> I supply, touch returns 'invalid date format'. man touch gives no
> examples. What's the secret?

>From man touch:
       -t STAMP
              use [[CC]YY]MMDDhhmm[.ss] instead of current time
so:
          touch -t 0104011234.56 ...
gives Apr 1,2001 12:34:56

> --
> Felix Miata

Pierre

Reply via email to