Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update README.rst#1009

Open
XinyiXiang wants to merge 1 commit intoscrapinghub:master from
XinyiXiang:master
Open

Update README.rst #1009
XinyiXiang wants to merge 1 commit intoscrapinghub:master from
XinyiXiang:master

Conversation

@XinyiXiang
Copy link

@XinyiXiang XinyiXiang commented Oct 26, 2021

This fixes the confusion mentioned in #465 by adding example usage to the documentation

Comment on lines +135 to +140
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
Copy link
Member

@Gallaecio Gallaecio Oct 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Gallaecio Gallaecio Gallaecio left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /