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

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.6
File Size Uploaded
crashbytes_dateutils-1.1.6.tar.gz 40.5 kB Details

Built distribution (wheel)

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

Total release size: 45.1 kB

Release files / crashbytes_dateutils-1.1.6.tar.gz

Download URL crashbytes_dateutils-1.1.6.tar.gz
Size 40.5 kB
Tags Source
SHA-256 checksum
How to use checksums
967e821191d19b22332a311793a94966b07abd76009d367fd9b6d17d79d8ad19
BLAKE2b-256 checksum
How to use checksums
ec6547131ed6d65e6398bd2d135244ccaf17889e080f5ebcf672bc3bb0f79906
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 1, 2026.

Transparency log

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

Download URL crashbytes_dateutils-1.1.6-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
447e9a2936e214b4b109fb32d1603a033d3ad1e922bda7650f327dc61bd053dc
BLAKE2b-256 checksum
How to use checksums
66a045c00bddbdcf6610c7649f95193fdf0900d7d323ed6ce07b8a8f2710c503
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 1, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

This release

1.1.6 This release

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