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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for sentinel-datetime-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5a775d80010d6e474bdf24c1cde8fb5be3055c264ba0624ab2fe61db683f479c
MD5 852bdbdd05deb1b80444a55d994050f4
BLAKE2b-256 69a07055b70aedd0662f6ff0b33d9f069407e6cc8ad39a16bbe0f22e33465550

See more details on using hashes here.

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

Hashes for sentinel_datetime-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b777c3af81f8956967f49da1d70efd68061573ed2e502db13f1e3ba40911e8f6
MD5 0e6f4df433267401a3dc3e31534f936e
BLAKE2b-256 8c7bae04e0fb4b3fc847fe507abdc21dab47f9c30d2cbd6f37372b7e9ce1830f

See more details on using hashes here.

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