BobDotCom / time_str

Time_Str is a package to convert user input into datetime.timedelta objects.

Home Page:https://time-str.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time_Str

Checked with mypy linting: pylint Code style: black

Codecov Checks Type Check and Lint Unit Tests pre-commit.ci status

PyPI version info PyPI supported Python versions Documentation Status Download Counter Latest release

A package to convert user input into datetime.timedelta objects.

PyPI: https://pypi.org/project/time-str/

Docs: https://time-str.rtfd.io/

Installation

You can install released versions of time_str from the Python Package Index via pip or a similar tool:

Stable Release: pip install time_str

Working Version: pip install git+https://github.com/BobDotCom/time_str.git

Usage

import time_str
converter = IntervalConverter('11 months 9days 1m 3 sec')
print(converter.timedelta_precise())
print(converter.datetime_precise())

About

Time_Str is a package to convert user input into datetime.timedelta objects.

https://time-str.rtfd.io

License:MIT License


Languages

Language:Python 100.0%