Relative file timestamp changing

Here's how to push the timestamp of files by a relative amount, e.g. move everything four hours into the past:

$ for file in *; do
    date="`date -r $file` - 4 hours"
    touch -d "$date" "$file"
  done

You can also change the timestamps of files to a absolute time like this:

$ touch -d '2010-01-01 12:00' *