Metadata-Version: 2.1
Name: dttools
Version: 0.1.2
Summary: A simple library for common date and time manipulations
Home-page: https://github.com/l4christ/dttools
Author: Emmanuel Ademola
Author-email: ademola.emmanuel383@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: pytz

# dttols

A simple library for common date and time manipulations.

## Installation

```bash
pip pip install dttools
```

## Usage

```py
# Adding Business Days
from dttools import add_business_days
from datetime import datetime

start_date = datetime(2023, 11, 10)
new_date = add_business_days(start_date, 5)
print(new_date)  # Output: A date 5 business days from the start_date, skipping weekends

```

```py
# Calculating Business Days Between Dates
from dttools import days_between_in_business_days
from datetime import datetime

start_date = datetime(2023, 11, 1)
end_date = datetime(2023, 11, 10)
business_days = days_between_in_business_days(start_date, end_date)
print(business_days)  # Output: The count of business days between the two dates

```

```py
# Formatting Relative Dates
from dttools import format_relative_date
from datetime import datetime, timedelta

some_date = datetime.now() - timedelta(days=3)
relative_format = format_relative_date(some_date)
print(relative_format)  # Output: "3 days ago"

```

```py
# Converting to a Specific Time Zone
from dttools import to_timezone
from datetime import datetime

utc_time = datetime.utcnow()
new_york_time = to_timezone(utc_time, "America/New_York")
print(new_york_time)  # Output: The datetime converted to New York time


```
