-d, --date
Parse STRING and use it instead of current time.
An option of touchx.
Usage
touchx -d STRING FILE...
touchx --date=STRING FILE...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-d | --date | STRING | parse STRING and use it instead of current time |
Examples
Set only the modification time to a specific date
touchx -m -d '2024-01-02 15:04:05' report.pdfUse an RFC 3339 timestamp, or seconds since the epoch
touchx -d 2024-06-01T12:00:00Z release.txt && touchx -d @0 epoch.txtStamp all sources with one fixed date for a reproducible archive
touchx -d 2024-01-01 src/*.goChange the times of a symbolic link itself, not its target (Linux only)
touchx -h -d 2024-01-01 link.txtHelp in the terminal
gnux help touchx --date