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
Metadata
Release files for sentinel-datetime 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sentinel-datetime-0.0.4.tar.gz | 2.2 kB | Without provenance | Details for sentinel-datetime-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sentinel_datetime-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for sentinel_datetime-0.0.4-py3-none-any.whl |
Total release size: 4.4 kB
Release files / sentinel-datetime-0.0.4.tar.gz
| Download URL | sentinel-datetime-0.0.4.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a775d80010d6e474bdf24c1cde8fb5be3055c264ba0624ab2fe61db683f479c
|
|
BLAKE2b-256 checksum How to use checksums |
69a07055b70aedd0662f6ff0b33d9f069407e6cc8ad39a16bbe0f22e33465550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / sentinel_datetime-0.0.4-py3-none-any.whl
| Download URL | sentinel_datetime-0.0.4-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b777c3af81f8956967f49da1d70efd68061573ed2e502db13f1e3ba40911e8f6
|
|
BLAKE2b-256 checksum How to use checksums |
8c7bae04e0fb4b3fc847fe507abdc21dab47f9c30d2cbd6f37372b7e9ce1830f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for sentinel-datetime 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.