Skip to main content

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

sentinel-datetime-0.0.4.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

sentinel_datetime-0.0.4-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page