Skip to main content

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

This version

0.10

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

files_folders_with_timestamp-0.10.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file files_folders_with_timestamp-0.10.tar.gz.

File metadata

File hashes

Hashes for files_folders_with_timestamp-0.10.tar.gz
Algorithm Hash digest
SHA256 3b70f893b46c5c5ff5ba7686246eba1a514b1493fc117c08f867124d5770c7cc
MD5 e2b37a1375a4192457b942717ae3a192
BLAKE2b-256 1afc27e59ad8a6525be0f2bc9b401a8a3f1c4e2b7998543d72586db52eda7c32

See more details on using hashes here.

File details

Details for the file files_folders_with_timestamp-0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for files_folders_with_timestamp-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 09f5921a60d9a41febb00409cd64fa758c8a2b66d25026e3ae14de6838b4f0be
MD5 087b728f62777bd363f93912eb8adfc2
BLAKE2b-256 853a14359b492fdc2e95c791cd5a6229ae648f22409f343db55053954316f3e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page