Skip to content

Commit 17dca63

Browse files
authored
Update README.md
1 parent f3d4329 commit 17dca63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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)