semvec/pypi-packages huggingface dataset:
pydateparser 0.2.6
date and time parsing library.
License: MIT
Keywords: date,time,datetime,parser

# pydateparser

-----
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/GlibAI/pydateparser/graphs/commit-activity)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
[![PyPI license](https://img.shields.io/pypi/l/pydateparser.svg)](https://pypi.python.org/pypi/pydateparser/)
[![PyPI status](https://img.shields.io/pypi/status/pydateparser.svg)](https://pypi.python.org/pypi/pydateparser/)
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
<img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat">
<img src="https://travis-ci.org/GlibAI/pydateparser.svg?branch=master">
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Django.svg)
[![Downloads](https://pepy.tech/badge/pydateparser)](https://pepy.tech/project/pydateparser)

**Table of Contents**

* [Installation](#installation)
* [Usage](#usage)
* [License](#license)

## Installation

pydateparser is distributed on [PyPI](https://pypi.org) as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.6+.

```bash
$ pip install pydateparser
```

## Usage

sample input:
```python
from pydateparser import DateParser as parser

text = 'Today is 10/12/16 and tomorrow is January 01 2019.'
dp = parser(text, start_year=2000, end_year=2020, locale=None)
```
sample output: 
```python
dp.date

#output
[datetime(date='january 01 2019', token_span=(34, 49), token_index=(6, 8), locale='%B %d %Y'),
 datetime(date='10/12/16', token_span=(9, 17), token_index=(2, 2), locale='%d/%m/%y')]
```
for an extended usage demo refer [this](https://github.com/GlibAI/pydateparser/blob/master/notebooks/lib-usage-notebook.ipynb) notebook.
## License

pydateparser is distributed under the terms of the
[MIT License](https://choosealicense.com/licenses/mit).