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
Close
Hashes for sentinel_datetime-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4038f1ac3a7e055db508ab913c2e2a6a7836a301462a9cd788232a54e99b8347 |
|
MD5 | 2413529946d7dd6a1458934d52c21522 |
|
BLAKE2b-256 | a79c74c35ab3e2960117bd5567dee331bee691b2247dfa15304bd3b9a22ff7b0 |