Skip to main content

PYPI package with 2 functions to convert datetime.timedelta into string with nice format

Project description

GitHub last commit GitHub license<space><space> PyPI PyPI - Python Version

Overview.

timedelta_nice_format is a PYPI package made with only one simple goal to convert time durations into nice human readable format

datetime.timedelta into nice formatted string

import datetime
from timedelta_nice_format import timedelta_nice_format

start = datetime.datetime.now()
# ...
# You code here
# ...
print(
    "Duration:",
    timedelta_nice_format(
        datetime.datetime.now()-start
    )
)

duration in seconds into nice formatted string

import time
from timedelta_nice_format import seconds_nice_format
start = time.time()
# ...
# You code here
# ...
print("Duration:", seconds_nice_format(time.time()-start))

Installation via pip:

pip install timedelta_nice_format

Contacts

License

This project is licensed under the MIT License.

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

timedelta_nice_format-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timedelta_nice_format-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file timedelta_nice_format-0.1.0.tar.gz.

File metadata

  • Download URL: timedelta_nice_format-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Windows/10

File hashes

Hashes for timedelta_nice_format-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f231a646f3f39df520bb30d1fcd279925b5726079f56be63ebb63f9329c6f4c
MD5 056e9ac40d6b259a1d4273d072617204
BLAKE2b-256 d8b3cef3f67190030c5431511988df19fdfd340ca7c8a1587e10a9b6ad78c9f5

See more details on using hashes here.

File details

Details for the file timedelta_nice_format-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for timedelta_nice_format-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1257b3cd5d20e3d560884b3a8b6e4a5179b6a50a5aa4a9a44d92f6313f5a0c38
MD5 e8ed0da7c5a41aba70eb08141cd71476
BLAKE2b-256 dd3c15251baa9760d461ad089b24c59b386f1c85a4a957af75f326f4cb4fbf3d

See more details on using hashes here.

Supported by

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