Metadata-Version: 2.4
Name: crashbytes-dateutils
Version: 1.1.1
Summary: Zero-dependency datetime business helpers — business days, fiscal quarters, relative strings.
Project-URL: Homepage, https://github.com/CrashBytes/crashbytes-dateutils
Project-URL: Repository, https://github.com/CrashBytes/crashbytes-dateutils
Project-URL: Issues, https://github.com/CrashBytes/crashbytes-dateutils/issues
Author-email: CrashBytes <crashbytes@users.noreply.github.com>
License-Expression: MIT
License-File: LICENSE
Keywords: business-days,date-utilities,datetime,fiscal-quarter
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: mypy>=1.20; extra == 'dev'
Requires-Dist: pytest-cov>=7.1; extra == 'dev'
Requires-Dist: pytest>=9.0.3; extra == 'dev'
Requires-Dist: ruff>=0.15.16; extra == 'dev'
Description-Content-Type: text/markdown

# crashbytes-dateutils

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

## Install

```bash
pip install crashbytes-dateutils
```

## Usage

```python
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
