pydateutils
Date helpers
Installation
pip install pydateutils
💡 Usage Examples
Basic Operations
from pylib_dateutils import days_between, add_days, format_date
from datetime import datetime
# Calculate days between dates
date1 = datetime(2024, 1, 1)
date2 = datetime(2024, 1, 15)
days = days_between(date1, date2)
# 14
# Add days to date
new_date = add_days(date1, 10)
# datetime(2024, 1, 11)
# Format date
formatted = format_date(date1, "%Y-%m-%d")
# '2024-01-01'
AI/ML Use Cases
from pylib_dateutils import days_between, add_days, format_date
# Calculate training duration
start_date = datetime(2024, 1, 1)
end_date = datetime(2024, 1, 20)
training_days = days_between(start_date, end_date)
# Schedule next model evaluation
last_eval = datetime.now()
next_eval = add_days(last_eval, 7) # Weekly evaluation
📚 API Reference
See package documentation for complete API reference.
🤖 AI Agent Friendly
This package is optimized for AI agents and code generation tools:
- Clear function names and signatures
- Comprehensive docstrings with examples
- Type hints for better IDE support
- Common use cases documented
- Zero dependencies for reliability
License
MIT
Release files for pylib-dateutils 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylib_dateutils-0.1.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylib_dateutils-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / pylib_dateutils-0.1.0.tar.gz
| Download URL | pylib_dateutils-0.1.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b032b539ba840692ea90a0d34afe6cab2a1b0dca556b6e5500d5ec626138055d
|
|
BLAKE2b-256 checksum How to use checksums |
f8372ae1a29a4b53070dda3465fca0c411eb0842d6ca75a133e3f85e5d9055e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / pylib_dateutils-0.1.0-py3-none-any.whl
| Download URL | pylib_dateutils-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
050bc55bb3cec681acc7469e1d0f2e10493b040ef94895d0c924e7bc9f025017
|
|
BLAKE2b-256 checksum How to use checksums |
58a40b80138062086022f939df33d0d2fce1a33d52e16381ffef3339edad5fac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|