Skip to content

Commit 8e2af2b

Browse files
committed
update docs for 0.7.0 release
1 parent 6abbda8 commit 8e2af2b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Ready to contribute? Here's how to set up `dateparser` for local development.
7878
5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
7979

8080
$ pip install -r tests/requirements.txt # install test dependencies
81+
$ pip install -r scripts/requirements.txt # install script dependencies
8182
$ flake8 dateparser tests
8283
$ nosetests
8384
$ tox

README.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ Documentation is built automatically and can be found on
3737
Features
3838
========
3939

40-
* Generic parsing of dates in over 200 languages plus numerous formats in a language agnostic fashion.
40+
* Generic parsing of dates in over 200 language locales plus numerous formats in a language agnostic fashion.
4141
* Generic parsing of relative dates like: ``'1 min ago'``, ``'2 weeks ago'``, ``'3 months, 1 week and 1 day ago'``, ``'in 2 days'``, ``'tomorrow'``.
4242
* Generic parsing of dates with time zones abbreviations or UTC offsets like: ``'August 14, 2015 EST'``, ``'July 4, 2013 PST'``, ``'21 July 2013 10:15 pm +0500'``.
43+
* Date lookup in longer texts.
4344
* Support for non-Gregorian calendar systems. See `Supported Calendars`_.
4445
* Extensive test coverage.
4546

@@ -218,6 +219,17 @@ You can also ignore parsing incomplete dates altogether by setting `STRICT_PARSI
218219
For more on handling incomplete dates, please look at `Settings`_.
219220

220221

222+
Search for Dates in Longer Chunks of Text
223+
-----------------------------------------
224+
225+
You can extract dates from longer strings of text. They are returned as list of tuples with text chunk containing the date and parsed datetime object.
226+
227+
>>> from dateparser.search import search_dates
228+
>>> search_dates("The client arrived to the office for the first time in March 3rd, 2004 and got serviced, after a couple of months, on May 6th 2004, the customer returned indicating a defect on the part")
229+
[(u'in March 3rd, 2004 and', datetime.datetime(2004, 3, 3, 0, 0)),
230+
(u'on May 6th 2004', datetime.datetime(2004, 5, 6, 0, 0))]
231+
232+
221233
Dependencies
222234
============
223235

0 commit comments

Comments
 (0)