Skip to main content

Fuzzy Duration

A simple package to convert a number of seconds to the approximate duration of the largest time unit.

install

python3 -m pip install fuzzyduration --user

Usage

from fuzzyduration import fuzzyDuration

secs = 60 * 60 * 24 * 1 + 1234

result = fuzzyDuration(secs)

print(result) # "1 day"

secs = secs * 8 * 2

print(result) # "2 weeks"

secs = secs * 60

print(result) # "2 years"

Metadata

Release files for fuzzyduration 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fuzzyduration 0.2.0
File Size Uploaded Provenance
fuzzyduration-0.2.0.tar.gz 1.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fuzzyduration 0.2.0
File Interpreter ABI Platform
fuzzyduration-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.5 kB

Release files / fuzzyduration-0.2.0.tar.gz

Download URL fuzzyduration-0.2.0.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
82ae5e8fd4a6781d812e9f4bf653f81ee8e852a51df882cc91694217348837f3
BLAKE2b-256 checksum
How to use checksums
cd369187bc47e138a78730b48fc91394d3fa0e6bedc1c3b0d2ead23c128fed40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.12.9-1-MANJARO

Release files / fuzzyduration-0.2.0-py3-none-any.whl

Download URL fuzzyduration-0.2.0-py3-none-any.whl
Size 1.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05203b326e2f4fe025bc4b59115f8a8406936b20209f353875450e275b3bea4a
BLAKE2b-256 checksum
How to use checksums
9e91fc4c58aaf32b6b7b1eb66df6135898078c7fdb9e465187b168ffe724289c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.12.9-1-MANJARO

Security for fuzzyduration 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page