Timestamps in readable format, touch folders/files with timestamp
Project description
Timestamps in readable format, touch folders/files with timestamp
# Tested with:
# Python 3.9.13
# Windows 10
$pip install files-folders-with-timestamp
from files_folders_with_timestamp import get_timestamp, create_file_with_timestamp, create_folder_with_timestamp
print(get_timestamp(sep="_"))
print(create_file_with_timestamp(folder=None, extension='.tmp', prefix='bild___', suffix='', sep='_', create_file=False))
print(create_file_with_timestamp(folder='f:\\testes\\dddd\\sasa', extension='.tmp', prefix='', suffix='', sep='-', create_file=True))
print(create_folder_with_timestamp(folder='f:\\newfolder', prefix='b', suffix='x', sep='_', create_folder=False))
print(create_folder_with_timestamp(folder='f:\\newfolder2', prefix='b', suffix='x', sep='x', create_folder=True))
2023_01_01_22_21_30_438475
bild___2023_01_01_22_21_30_438475.tmp
f:\testes\dddd\sasa\2023-01-01-22-21-30-438475.tmp
f:\newfolder\b2023_01_01_22_21_30_450186x
f:\newfolder2\b2023x01x01x22x21x30x451162x
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file files_folders_with_timestamp-0.10.tar.gz.
File metadata
- Download URL: files_folders_with_timestamp-0.10.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b70f893b46c5c5ff5ba7686246eba1a514b1493fc117c08f867124d5770c7cc
|
|
| MD5 |
e2b37a1375a4192457b942717ae3a192
|
|
| BLAKE2b-256 |
1afc27e59ad8a6525be0f2bc9b401a8a3f1c4e2b7998543d72586db52eda7c32
|
File details
Details for the file files_folders_with_timestamp-0.10-py3-none-any.whl.
File metadata
- Download URL: files_folders_with_timestamp-0.10-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09f5921a60d9a41febb00409cd64fa758c8a2b66d25026e3ae14de6838b4f0be
|
|
| MD5 |
087b728f62777bd363f93912eb8adfc2
|
|
| BLAKE2b-256 |
853a14359b492fdc2e95c791cd5a6229ae648f22409f343db55053954316f3e6
|