Metadata-Version: 2.1
Name: date_to
Version: 1.0a1
Summary: A handy python function to parse and convert to and between datetime.datetime, int, and string objects
Author-email: Arnaud van Haaster <dont@me.please>
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
Requires-Dist: dateparser>=1.1.2
Project-URL: Documentation, https://github.com/ahaaster/date-converter
Project-URL: Home, https://github.com/ahaaster/date-converter
Project-URL: Source, https://github.com/ahaaster/date-converter

# Date Converter
A handy date parser and converter that handles timestamps, strings, and datetime.date.

### Convert from any date to another with a single function!
Date converter will make your naive dates timezone aware and uniformly convert them to UTC for your convenience!

## Basic Use

```python
from date_converter import date_to

some_date = "2001-09-11 17:20 EDT"

print(date_to(some_date, str))
print(date_to(some_date, int))
print(date_to(some_date, "datetime"))
```

__Out:__

```
2001-09-11T21:20:00+00:00
1000243200
2001-09-11 21:20:00+00:00
```

### Accepted Inputs
```python
from datetime import datetime

accepted_object_inputs = int | str | datetime.date
accepted_string_inputs = [
    "str", "string",
    "int", "timestamp", "epoch", "unix", "float",
    "datetime.date", "datetime", "date",
]
```
