Skip to main content

crashbytes-dateutils

Zero-dependency datetime business helpers — business days, fiscal quarters, relative strings.

Install

pip install crashbytes-dateutils

Usage

from datetime import date
from crashbytes_dateutils import (
    add_business_days, business_days_between, to_relative_string,
    fiscal_quarter, age, start_of_month, end_of_month,
)

add_business_days(date(2024, 6, 14), 1)           # date(2024, 6, 17) — skips weekend
business_days_between(date(2024, 6, 17), date(2024, 6, 21))  # 4
to_relative_string(date(2024, 6, 12), today=date(2024, 6, 15))  # "3 days ago"
fiscal_quarter(date(2024, 7, 15), start_month=7)   # 1
age(date(1990, 6, 15), today=date(2024, 6, 15))    # 34

License

MIT

Metadata

Release files for crashbytes-dateutils 1.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crashbytes-dateutils 1.1.9
File Size Uploaded
crashbytes_dateutils-1.1.9.tar.gz 50.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crashbytes-dateutils 1.1.9
File Interpreter ABI Platform
crashbytes_dateutils-1.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 55.2 kB

Release files / crashbytes_dateutils-1.1.9.tar.gz

Download URL crashbytes_dateutils-1.1.9.tar.gz
Size 50.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fbd156d9a902daf590e94a0ea7a8b6a5ec89595c22ef35300f3d1d4b07f1d4f6
BLAKE2b-256 checksum
How to use checksums
74bab841ce5ab17f40c7c973b4ee579934f86badad5d5e0aa7e9a8fbc2a6f1a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / crashbytes_dateutils-1.1.9-py3-none-any.whl

Download URL crashbytes_dateutils-1.1.9-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffb463a692f368ecf6cb70063bb698de9f3156fce26be62b85159bd7c7322478
BLAKE2b-256 checksum
How to use checksums
87afcd4e1ddd5739bc8f6ef42003012af55e349cc6c062894784c0d460f6e85b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.9 This release

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page