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 |
|
|---|---|
docs |
|
code |
|
package |
|
downloads |
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56bd1b22816a6c3cbaeedea667fa152e6bf76de0a5976dedb6954c657dddebf6
|
|
| MD5 |
4453d259f3e6c162f20d688d3660fc63
|
|
| BLAKE2b-256 |
1565e767c1e1b162ba7ca3ebc6bcd6e4bdd48d46a5eb369686d205a746a03631
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a69ddd470ffe2cca0b9c4ccef37eac6d97a41238e0394aeae97d7739e9b7fae4
|
|
| MD5 |
344473dde6354cf211551fe6c2a07ea9
|
|
| BLAKE2b-256 |
b10f034a135c9964de69412a8ea2de57f9e04bd72b42e90236671b54ff915c01
|