Touch change modified time including seconds
Solution 1:
$ touch -t 201108231405.14 voucher.tpl
$ ls -l --time-style='+%B %d %H:%M:%S' voucher.tpl
-rw-r--r-- 1 quanta quanta 0 August 23 14:05:14 voucher.tpl
Solution 2:
Remove spaces. Also, you're missing the period between the mm and the ss. This will work:
touch -t 201108231405.14 voucher.pl
Solution 3:
touch -t 201108231405.14 voucher.tpl
should work. It did for me.
Note that the time format specification does not include any spaces.
Solution 4:
You are using the wrong format.
This should work fine:
touch -t 201108231405.14 voucher.tpl
-t STAMP
use
[[CC]YY]MMDDhhmm[.ss]
instead of current time