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.7

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.7
File Size Uploaded
crashbytes_dateutils-1.1.7.tar.gz 50.6 kB Details

Built distribution (wheel)

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

Total release size: 55.2 kB

Release files / crashbytes_dateutils-1.1.7.tar.gz

Download URL crashbytes_dateutils-1.1.7.tar.gz
Size 50.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7c8b4fa1b101841ab2264385446c316f40c232fe61c9ae918b20145fb91d6df2
BLAKE2b-256 checksum
How to use checksums
7428d02212ed5a0c74966c542ff0f084a063cc53e51ee788edfa9569c68a60a1
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 Aug 15, 2026.

Transparency log

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

Download URL crashbytes_dateutils-1.1.7-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e2479504baddcddbd8222c9c51bda1c76374d70141256e0501033989e17134b
BLAKE2b-256 checksum
How to use checksums
4e4d9a45a912b033d30c47ae84107503417744f4f5aba28c540ac7f566ab9490
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 Aug 15, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.9

2 release files

1.1.8

2 release files

This release

1.1.7 This release

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