From 9ae60ef430a1253bba1a629d38f896678a6269dd Mon Sep 17 00:00:00 2001 From: Xinyi Xiang/ Vicky Date: Mon, 25 Oct 2021 20:59:31 -0700 Subject: [PATCH] Update README.rst --- README.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.rst b/README.rst index 7d0bf7ede..1fd74fd3c 100644 --- a/README.rst +++ b/README.rst @@ -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 + + To see more examples on how to use the ``settings``, check the `settings section `__