Change file timestamps with a dialog window.
Project description
Change files timestamp with a dialog window.
GUI automatically fallback to a text interface when display is not available.
Installation
Install with a single command from PyPi.
pip install touch-timestamp
Docs
Methods to set the date
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
Full help
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
Krusader user action
To change the file timestamps easily from Krusader, import this user action: touch-timestamp %aList("Selected")%
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file touch_timestamp-0.3.8.tar.gz
.
File metadata
- Download URL: touch_timestamp-0.3.8.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0bf55ddf0ddbb666a65431b42d144504c8b261c2adab5d9b3886f4a3a25a4fc |
|
MD5 | 1585faff9fab7672be703940dd31a502 |
|
BLAKE2b-256 | beeb10a762a4c633e7301d6b0c40c6d6b46a7c97638aba4cfccc0573221e4b0e |
File details
Details for the file touch_timestamp-0.3.8-py3-none-any.whl
.
File metadata
- Download URL: touch_timestamp-0.3.8-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecdbba042947234f5a4baeb5bed8e33191e88546a5700fb76087c9075400a720 |
|
MD5 | 02a3714b9285793c1996d70d76a0f7ff |
|
BLAKE2b-256 | ec42549c3dbff2e1783c77653df6d75de4f73c93e559dbf937b66d7a76430c9e |