Skip to main content

A package to convert user input into datetime.timedelta objects

Project description

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

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

Docs: https://time-str.readthedocs.io/en/latest/

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
>>> time_str.convert('11 months 9days 1m 3 sec')
datetime.timedelta(days=345, seconds=63)
>>> time_str.convert('2 months 3w 1 d 5hour 3 min')
datetime.timedelta(days=83, seconds=18180)

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

time_str-0.0.3.dev2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

time_str-0.0.3.dev2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file time_str-0.0.3.dev2.tar.gz.

File metadata

  • Download URL: time_str-0.0.3.dev2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.2

File hashes

Hashes for time_str-0.0.3.dev2.tar.gz
Algorithm Hash digest
SHA256 c0e6568d805fe4b7bca16fb33837e29d1774bed2b0e1eac5bfcff6af774f8225
MD5 30333ed5e3350e3e20df8da8086534f5
BLAKE2b-256 3027d06c56c5f2dd034665c20f0e904ec54fa316ee21258d65833121f0171082

See more details on using hashes here.

File details

Details for the file time_str-0.0.3.dev2-py3-none-any.whl.

File metadata

  • Download URL: time_str-0.0.3.dev2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.2

File hashes

Hashes for time_str-0.0.3.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 3253cf577e0b02f90cc1cbdb1c99a22d4b76ca0f32b4d6aa998a2004cc244290
MD5 7fbee43af62bdf275fc569a53926a5e1
BLAKE2b-256 1adf07fb3bc026a0d996b6873e9e8472b3838ec4525a21ad498097ad3675d75e

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