Skip to content

Commit 9e3ace5

Browse files
committed
Merge branch 'master' of https://github.com/GlibAI/pydateparser
2 parents b663c14 + 17dca63 commit 9e3ace5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# pydateparser
22

33
-----
4-
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
4+
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/GlibAI/pydateparser/graphs/commit-activity)
55
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
6-
[![PyPI license](https://img.shields.io/pypi/l/ansicolortags.svg)](https://pypi.python.org/pypi/ansicolortags/)
7-
[![PyPI status](https://img.shields.io/pypi/status/ansicolortags.svg)](https://pypi.python.org/pypi/ansicolortags/)
6+
[![PyPI license](https://img.shields.io/pypi/l/pydateparser.svg)](https://pypi.python.org/pypi/pydateparser/)
7+
[![PyPI status](https://img.shields.io/pypi/status/pydateparser.svg)](https://pypi.python.org/pypi/pydateparser/)
88
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
99

1010
**Table of Contents**
@@ -30,15 +30,15 @@ sample input:
3030
from pydateparser import DateParser as parser
3131

3232
text = 'Today is 10/12/16 and tomorrow is January 01 2019.'
33-
dp = parser(text, start_year=2000, end_year=2020, datetime_format=None)
33+
dp = parser(text, start_year=2000, end_year=2020, locale=None)
3434
```
3535
sample output:
3636
```python
3737
dp.datetime
3838

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

0 commit comments

Comments
 (0)