Skip to main content

A decimal date utility to handle integer dates on the form `yyyymmdd`.

Project description

A Python class to handle decimal dates on the form yyyymmdd.

general

BSD 3 Clause

docs

Documentation Status

code

Using black formatter Commits since latest release Test multiple Python versions
Scrutinizer code quality Scrutinizer coverage Scrutinizer build
OpenSSF

package

PyPI Wheel Supported versions Supported implementations

downloads

Total downloads counter Weekly downloads counter Weekly downloads counter

About

Python decimal date utility to handle integer dates on the form yyyymmdd.

Main Features

Simplifies handling of decimal dates, here being integers on the form yyyymmdd.

See documentation hosted on readthedocs.

As an example loop over all Tuesdays in the month of Valentine’s Day 2024.

>>> from decimaldate import DecimalDateRange
>>>
>>> TUESDAY = 1
>>>
>>> for dd in [
>>>     dd
>>>     for dd in DecimalDateRange.range_month_of_decimal_date(20240214)
>>>     if dd.weekday() == TUESDAY
>>> ]:
>>>     print(repr(dd))
DecimalDate(20240206)
DecimalDate(20240213)
DecimalDate(20240220)
DecimalDate(20240227)

Where to get it

The source code is hosted at GitHub.

An installer for the latest released version is available at PyPI.

python3 -m pip install decimaldate

Dependencies

Python >=3.11

There are no other dependencies for deployment.

Documentation

Documentation is hosted on readthedocs.

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

decimaldate-0.3.2.tar.gz (842.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

decimaldate-0.3.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file decimaldate-0.3.2.tar.gz.

File metadata

  • Download URL: decimaldate-0.3.2.tar.gz
  • Upload date:
  • Size: 842.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for decimaldate-0.3.2.tar.gz
Algorithm Hash digest
SHA256 56bd1b22816a6c3cbaeedea667fa152e6bf76de0a5976dedb6954c657dddebf6
MD5 4453d259f3e6c162f20d688d3660fc63
BLAKE2b-256 1565e767c1e1b162ba7ca3ebc6bcd6e4bdd48d46a5eb369686d205a746a03631

See more details on using hashes here.

File details

Details for the file decimaldate-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: decimaldate-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for decimaldate-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a69ddd470ffe2cca0b9c4ccef37eac6d97a41238e0394aeae97d7739e9b7fae4
MD5 344473dde6354cf211551fe6c2a07ea9
BLAKE2b-256 b10f034a135c9964de69412a8ea2de57f9e04bd72b42e90236671b54ff915c01

See more details on using hashes here.

Supported by

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