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

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

Built distribution (wheel)

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

Total release size: 55.2 kB

Release files / crashbytes_dateutils-1.1.8.tar.gz

Download URL crashbytes_dateutils-1.1.8.tar.gz
Size 50.6 kB
Tags Source
SHA-256 checksum
How to use checksums
274b8d863d7840d329da4d167515d28e23123a76a6e4173b8657349dbc7c7a08
BLAKE2b-256 checksum
How to use checksums
65d59862d15a25d7bedab22dd8e3f359dd4285a3d530c47bedef972312af8d2b
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 1, 2026.

Transparency log

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

Download URL crashbytes_dateutils-1.1.8-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22db5858cf79b34b56735f22b6890baa3de3dd9e294c24c0fe2d89c894029872
BLAKE2b-256 checksum
How to use checksums
a8ffb3e286d486be0afc2dc549856954f69c0f9039eadfe1a7f44c35e160fe47
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 1, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.9

2 release files

This release

1.1.8 This release

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