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")
yorY- yearsm- monthsworW- weeksdorD- dayshorH- hoursM- minutessorS- secondsmsorMS- milliseconds
Whitespace between components will be ignored. The order of components matters.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf951345a11f73a3eef25902eea51a8cf76f9d7cfedbda33c035d3fcc5ea8d8e
|
|
| MD5 |
aced2e7273f3045426f01b85a08c2203
|
|
| BLAKE2b-256 |
38f54853da3283da614be64781f89bba47b8bc6793b0ea5ebc3a68fbac82116d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c25eff6b133df38ef2d09499ba80afdadba54bac59bfea69dc9d3a85aa4221b
|
|
| MD5 |
44b465b199cd1c433d0cbc6354c072b8
|
|
| BLAKE2b-256 |
09442571f49b3e3548bde2f5da3739b9e2499d5957a300cf2010ef9cf8c710fc
|