Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ You can control multiple behaviors by using the ``settings`` parameter:

>>> dateparser.parse('tomorrow', settings={'RELATIVE_BASE': datetime.datetime(1992, 1, 1)})
datetime.datetime(1992, 1, 2, 0, 0)

You can control the language locale by using the ``region`` parameter, second part of string correlates to region (en-AU --> region = AU (Australia)):

.. code:: python

>>> dateparser.parse("March 29, 1961 6:24pm", region='AU')
1961-03-29 18:24:00
Comment on lines +135 to +140
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should mention all 3 fields for this: locales, languages, and region.




To see more examples on how to use the ``settings``, check the `settings
section <https://dateparser.readthedocs.io/en/latest/usage.html#settings>`__
Expand Down