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.
Metadata
Release files for decimaldate 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| decimaldate-0.3.2.tar.gz | 842.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| decimaldate-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 855.3 kB
Release files / decimaldate-0.3.2.tar.gz
| Download URL | decimaldate-0.3.2.tar.gz |
|---|---|
| Size | 842.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56bd1b22816a6c3cbaeedea667fa152e6bf76de0a5976dedb6954c657dddebf6
|
|
BLAKE2b-256 checksum How to use checksums |
1565e767c1e1b162ba7ca3ebc6bcd6e4bdd48d46a5eb369686d205a746a03631
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / decimaldate-0.3.2-py3-none-any.whl
| Download URL | decimaldate-0.3.2-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a69ddd470ffe2cca0b9c4ccef37eac6d97a41238e0394aeae97d7739e9b7fae4
|
|
BLAKE2b-256 checksum How to use checksums |
b10f034a135c9964de69412a8ea2de57f9e04bd72b42e90236671b54ff915c01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|