Skip to main content

Python library for parsing time delta strings into timedelta objects.

Project description

timedeltaparse

Python library for parsing time delta strings into timedelta objects.

Usage

from timedeltaparse import parse_timedelta

delta = parse_timedelta("1y 2m 3w 4d 5h 6M 7s 8ms")
  • y or Y - years
  • m - months
  • w or W - weeks
  • d or D - days
  • h or H - hours
  • M - minutes
  • s or S - seconds
  • ms or MS - milliseconds

Whitespace between components will be ignored. The order of components matters.


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

timedeltaparse-0.0.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

timedeltaparse-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file timedeltaparse-0.0.1.tar.gz.

File metadata

  • Download URL: timedeltaparse-0.0.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for timedeltaparse-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cf951345a11f73a3eef25902eea51a8cf76f9d7cfedbda33c035d3fcc5ea8d8e
MD5 aced2e7273f3045426f01b85a08c2203
BLAKE2b-256 38f54853da3283da614be64781f89bba47b8bc6793b0ea5ebc3a68fbac82116d

See more details on using hashes here.

File details

Details for the file timedeltaparse-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: timedeltaparse-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for timedeltaparse-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c25eff6b133df38ef2d09499ba80afdadba54bac59bfea69dc9d3a85aa4221b
MD5 44b465b199cd1c433d0cbc6354c072b8
BLAKE2b-256 09442571f49b3e3548bde2f5da3739b9e2499d5957a300cf2010ef9cf8c710fc

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