Python library that converts a date written as plain text to a datetime object.
Project description
Convert plain text to datetime
Currently only supporting English.
Python library that converts a date written as plain text to a datetime object.
How to use it :computer:
First you install it in you environment like this
pip install textime
Then you can start using it already! Pass any string to the text parameter containing a date in the format: "DAY of MONTH of YEAR" where YEAR must be written out completely, like "first of May of two thousand and twenty one" or "second of August of one thousand nine hundred and ninety nine".
from datetime import datetime
from textime import textime
text_to_dt: datetime = textime.to_datetime(text="Fifteenth of July of two thousand and eight")
Contribution :pencil:
This project is open source. Contributions are welcome and appreciated. Please check our guide for contributing and our code of conduct as well.
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
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 textime-1.0.6.tar.gz.
File metadata
- Download URL: textime-1.0.6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67b3879c5cc938b28b70fe456ff743caeb13f8de773b7479c0419657e6a4efbf
|
|
| MD5 |
61530ea3881c98d402c5b36045eb4319
|
|
| BLAKE2b-256 |
30707989eab1859ca30a865cc7c80233abf7deb5e07f5439b864cc638c891370
|
File details
Details for the file textime-1.0.6-py3-none-any.whl.
File metadata
- Download URL: textime-1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
836dc60060518e2770e92567f920dc22bde1ad36b0b653f9ae47767acae288f1
|
|
| MD5 |
3cc6d969d406f726b736c6bdab5265fd
|
|
| BLAKE2b-256 |
1f060eba1e44a7173fcbcadd975e55714f21fdd6c547f794b825937c50b4c8e2
|