Change files timestamp with a dialog window.
GUI automatically fallback to a text interface when display is not available.
Install with a single command from PyPi.
pip install touch-timestamp
When invoked with file paths, you choose whether to set their modification times
- to the specified time
- to the date from the Exif through jhead
- to a name auto-detected from the file name, ex:
IMG_20240101_010053.jpg
→2024-01-01 01:00:53
- to a relative time
- to the specific time, set for a file, then shifts all the other relative to this
Everything can be achieved via CLI flag. See the --help
.
Let's take fetching the time from the file name as an example.
Should you end up with files that keep the date in the file name, use the --from-name
parameter. In the help, you see that True trigger an automatic detection of the time and date format.
$ touch-timestamp 20240828_160619.heic --from-name True
Changed 2001-01-01T12:00:00 → 2024-08-28T16:06:19: 20240828_160619.heic
To change the file timestamps easily from Krusader, import this user action: touch-timestamp %aList("Selected")%