Metadata-Version: 2.1
Name: fuzzyduration
Version: 0.2.0
Summary: returns the number of seconds as the approx. largest unit of time.
License: GPL-3.0-or-later
Author: ccdale
Author-email: chris.charles.allison+fuzzy@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown

# 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

```python
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"
```

