Sentinel Result Object for python-dateutil
Project description
Sentinel Datetime
For python-dateutil
Inspired by a stackoverflow question, for when you want to know a little more about the datetime strings you are parsing with python-dateutil
Install
pip install sentinel-datetime
Usage
>>> from dateutil import parser
>>>
>>> from sentinel_datetime import sentinel
>>>
>>> date = parser.parse("Sep-2nd 11:00:00", default=sentinel())
>>> date.has_day
True
>>> date.has_year
False
>>> date.todatetime()
2021-09-02 11:00:00
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 sentinel-datetime-0.0.4.tar.gz.
File metadata
- Download URL: sentinel-datetime-0.0.4.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.0b3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a775d80010d6e474bdf24c1cde8fb5be3055c264ba0624ab2fe61db683f479c
|
|
| MD5 |
852bdbdd05deb1b80444a55d994050f4
|
|
| BLAKE2b-256 |
69a07055b70aedd0662f6ff0b33d9f069407e6cc8ad39a16bbe0f22e33465550
|
File details
Details for the file sentinel_datetime-0.0.4-py3-none-any.whl.
File metadata
- Download URL: sentinel_datetime-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.0b3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b777c3af81f8956967f49da1d70efd68061573ed2e502db13f1e3ba40911e8f6
|
|
| MD5 |
0e6f4df433267401a3dc3e31534f936e
|
|
| BLAKE2b-256 |
8c7bae04e0fb4b3fc847fe507abdc21dab47f9c30d2cbd6f37372b7e9ce1830f
|